urbanopt-cli 0.6.0 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +2 -2
  4. data/CHANGELOG.md +38 -0
  5. data/CMakeLists.txt +13 -13
  6. data/FindOpenStudioSDK.cmake +11 -6
  7. data/Gemfile +11 -5
  8. data/example_files/Gemfile +6 -3
  9. data/example_files/base_workflow_res.osw +10 -0
  10. data/example_files/example_project_combined.json +13 -3
  11. data/example_files/example_project_with_PV.json +751 -0
  12. data/example_files/example_project_with_streets.json +826 -0
  13. data/example_files/mappers/Baseline.rb +69 -14
  14. data/example_files/mappers/CreateBar.rb +31 -1
  15. data/example_files/mappers/FlexibleHotWater.rb +69 -0
  16. data/example_files/mappers/Floorspace.rb +31 -1
  17. data/example_files/mappers/HighEfficiency.rb +20 -8
  18. data/example_files/mappers/HighEfficiencyCreateBar.rb +3 -2
  19. data/example_files/mappers/HighEfficiencyFloorspace.rb +3 -2
  20. data/example_files/mappers/base_workflow.osw +5 -0
  21. data/example_files/mappers/createbar_workflow.osw +3 -1
  22. data/example_files/mappers/floorspace_workflow.osw +2 -1
  23. data/example_files/osm_building/7.osm +0 -307
  24. data/example_files/osm_building/8.osm +0 -419
  25. data/example_files/osm_building/9.osm +0 -664
  26. data/example_files/reopt/base_assumptions.json +3 -3
  27. data/example_files/reopt/multiPV_assumptions.json +2 -2
  28. data/example_files/resources/hpxml-measures/Gemfile +1 -1
  29. data/example_files/resources/hpxml-measures/Gemfile.lock +6 -25
  30. data/example_files/visualization/input_visualization_feature.html +15 -16
  31. data/example_files/visualization/input_visualization_scenario.html +16 -11
  32. data/lib/uo_cli/version.rb +1 -1
  33. data/lib/uo_cli.rb +158 -26
  34. data/scripts/setup-env-gitbash.sh +4 -4
  35. data/scripts/setup-env-unix.sh +4 -4
  36. data/scripts/setup-env.bat +3 -3
  37. data/scripts/setup-env.ps1 +3 -3
  38. data/uo_cli.gemspec +8 -5
  39. metadata +59 -14
@@ -9,9 +9,9 @@ if (-not (Test-Path $HOME)) { exit }
9
9
 
10
10
  $BASE_DIR_NAME = $PSScriptRoot
11
11
 
12
- $env:GEM_HOME = "$BASE_DIR_NAME\gems\ruby\2.5.0"
13
- $env:GEM_PATH = "$BASE_DIR_NAME\gems\ruby\2.5.0"
14
- $env:PATH += ";$BASE_DIR_NAME\ruby\bin;$BASE_DIR_NAME\gems\ruby\2.5.0\bin"
12
+ $env:GEM_HOME = "$BASE_DIR_NAME\gems\ruby\2.7.0"
13
+ $env:GEM_PATH = "$BASE_DIR_NAME\gems\ruby\2.7.0"
14
+ $env:PATH += ";$BASE_DIR_NAME\ruby\bin;$BASE_DIR_NAME\gems\ruby\2.7.0\bin"
15
15
  $env:RUBYLIB = "$BASE_DIR_NAME\OpenStudio\Ruby"
16
16
  $env:RUBY_DLL_PATH = "$BASE_DIR_NAME\OpenStudio\Ruby"
17
17
 
data/uo_cli.gemspec CHANGED
@@ -34,13 +34,16 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  # use specific versions of urbanopt and openstudio dependencies while under heavy development
36
36
  spec.add_runtime_dependency 'optimist', '~> 3'
37
- spec.add_runtime_dependency 'urbanopt-geojson', '~> 0.6.1'
38
- spec.add_runtime_dependency 'urbanopt-reopt', '~> 0.6.0'
39
- spec.add_runtime_dependency 'urbanopt-scenario', '~> 0.6.0'
40
- spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.4.0'
37
+ spec.add_runtime_dependency 'urbanopt-geojson', '~> 0.6.6'
38
+ spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.4.2'
39
+ spec.add_runtime_dependency 'urbanopt-scenario', '~> 0.6.3'
40
+ spec.add_runtime_dependency 'urbanopt-reopt', '~> 0.6.2'
41
+ spec.add_runtime_dependency 'urbanopt-rnm-us', '~> 0.1.1'
41
42
 
42
43
  spec.add_development_dependency 'bundler', '>= 2.1.0'
43
44
  spec.add_development_dependency 'rake', '~> 13.0'
44
45
  spec.add_development_dependency 'rspec', '~> 3.7'
45
- spec.add_development_dependency 'rubocop', '~> 0.54'
46
+ spec.add_development_dependency 'rubocop', '~> 1.15.0'
47
+ spec.add_development_dependency 'rubocop-performance', '~> 1.11.3'
48
+ spec.add_development_dependency 'rubocop-checkstyle_formatter', '~> 0.4.0'
46
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanopt-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-02 00:00:00.000000000 Z
11
+ date: 2021-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optimist
@@ -30,56 +30,70 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.6.1
33
+ version: 0.6.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.6.1
40
+ version: 0.6.6
41
41
  - !ruby/object:Gem::Dependency
42
- name: urbanopt-reopt
42
+ name: urbanopt-reporting
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.6.0
47
+ version: 0.4.2
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.6.0
54
+ version: 0.4.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: urbanopt-scenario
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.6.0
61
+ version: 0.6.3
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.6.0
68
+ version: 0.6.3
69
69
  - !ruby/object:Gem::Dependency
70
- name: urbanopt-reporting
70
+ name: urbanopt-reopt
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.4.0
75
+ version: 0.6.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.4.0
82
+ version: 0.6.2
83
+ - !ruby/object:Gem::Dependency
84
+ name: urbanopt-rnm-us
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.1.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.1.1
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: bundler
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +142,42 @@ dependencies:
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '0.54'
145
+ version: 1.15.0
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '0.54'
152
+ version: 1.15.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-performance
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.11.3
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.11.3
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop-checkstyle_formatter
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.4.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.4.0
139
181
  description: Interfacing with URBANopt
140
182
  email:
141
183
  - nathan.moore@nrel.gov
@@ -167,10 +209,13 @@ files:
167
209
  - example_files/example_floorspace_project.json
168
210
  - example_files/example_project.json
169
211
  - example_files/example_project_combined.json
212
+ - example_files/example_project_with_PV.json
170
213
  - example_files/example_project_with_electric_network.json
214
+ - example_files/example_project_with_streets.json
171
215
  - example_files/mappers/Baseline.rb
172
216
  - example_files/mappers/CreateBar.rb
173
217
  - example_files/mappers/EvCharging.rb
218
+ - example_files/mappers/FlexibleHotWater.rb
174
219
  - example_files/mappers/Floorspace.rb
175
220
  - example_files/mappers/HighEfficiency.rb
176
221
  - example_files/mappers/HighEfficiencyCreateBar.rb