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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3efcf79adfbe7f95d6924f8beec36886999f7d5b695ab58e76d7cc4fea24d57e
4
- data.tar.gz: 5bffff58a1805adcc3da24c2e9714daaa827e8929548c32a0397e7ef178e2a24
3
+ metadata.gz: e22b9be526f415a23ef46109659ccf581b185ef20834551fc7bfcc369400def7
4
+ data.tar.gz: c25b11b2d634144a92415f3ad3c1ed47bab59a26db1789a39c40b60c457e674b
5
5
  SHA512:
6
- metadata.gz: 285801c4e6d887e7c563dfb6f734900717d9a9d550a8f9ff7c04962cdceaaffc2f04b9889398ba750d2a6d3b082bb556e9ac94cf77851bfed9e5579fc491a972
7
- data.tar.gz: 9c5311eda246ffdf565ecf87f16107b50fd9f54a5a02997e123d251553737dd25410016506bb5f3cb0b1295bd9dae4767167a6a9f0fd51d7f829f8d823dffd67
6
+ metadata.gz: a07ac41ef827b81074e867c364c39f205ffe386c21b0d6cdf1ecf8d3503b50f9b64196f28b71f8c1baeefc02dc7dfde64a5c8eef47d6f9a010764a8bb6ec5bab
7
+ data.tar.gz: 69145c09619fcd1e370a68a3be3e1b0a41803a27f55c69bbbcc5d5f0496213da208a20220f2bcf89f1d93e8ecfa6efe9a028f251ace9be4daacd59275ec5c74a
data/.gitignore CHANGED
@@ -23,6 +23,7 @@
23
23
  spec/test_directory
24
24
  spec/test_directory_res
25
25
  spec/test_directory_elec
26
+ spec/test_directory_*
26
27
 
27
28
  Gemfile.lock
28
29
  .rubocop*
data/.rubocop.yml CHANGED
@@ -4,6 +4,6 @@ AllCops:
4
4
  - init_templates/**/*
5
5
  - lib/measures/**/resources/*
6
6
  - lib/openstudio/extension/core/**/*
7
-
7
+ require: rubocop-performance
8
8
  inherit_from:
9
- - http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v3.yml
9
+ - http://s3.amazonaws.com/openstudio-resources/styles/rubocop_v4.yml
data/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.6.4
4
+
5
+ Date Range 10/29/21 - 11/3/21
6
+
7
+ - Fixed [#267]( https://github.com/urbanopt/urbanopt-cli/issues/267 ), Default the GCR (ground coverage ratio) for PV to 0.99 in all example assumptions files
8
+
9
+ ## Version 0.6.3
10
+
11
+ Date Range 7/23/21 - 10/28/21
12
+
13
+ - Fixed [#248]( https://github.com/urbanopt/urbanopt-cli/issues/248 ), Update example project to make use of commercial hours of operation customization
14
+ - Fixed [#255]( https://github.com/urbanopt/urbanopt-cli/issues/255 ), Look into warning message
15
+ - Fixed [#258]( https://github.com/urbanopt/urbanopt-cli/issues/258 ), added missing feature location arguments to CreateBar & Floorspace workflows
16
+ - Fixed [#260]( https://github.com/urbanopt/urbanopt-cli/issues/260 ), Add support for community PV, and ground-mount PV associated with Features
17
+ - Fixed [#265]( https://github.com/urbanopt/urbanopt-cli/issues/265 ), RNM workflow does not work when specifying the electrical catalog
18
+ - Fixed [#268]( https://github.com/urbanopt/urbanopt-cli/issues/268 ), Sync files from the urbanopt / urbanopt-example-geojson-project repository
19
+
20
+ ## Version 0.6.2
21
+
22
+ Date Range 7/2/21 - 7/22/21
23
+
24
+ - Fixed [#246]( https://github.com/urbanopt/urbanopt-cli/issues/246 ), Fix Visualizations for other fuels
25
+ - Fixed [#250]( https://github.com/urbanopt/urbanopt-cli/issues/250 ), Integrate RNM functionality
26
+ - Fixed [#252]( https://github.com/urbanopt/urbanopt-cli/issues/252 ), Utilize ASHRAE 90.1 Laboratory prototype model
27
+
28
+ ## Version 0.6.1
29
+
30
+ Date Range 5/1/21 - 7/1/21
31
+
32
+ - Fixed [#222]( https://github.com/urbanopt/urbanopt-cli/issues/222 ), Add a resilience flag to reopt processing
33
+ - Fixed [#224]( https://github.com/urbanopt/urbanopt-cli/issues/224 ), Createbar and Floorspace mappers are out of date
34
+ - Fixed [#227]( https://github.com/urbanopt/urbanopt-cli/issues/227 ), Runtime error when running urbanopt cli example project
35
+ - Fixed [#233]( https://github.com/urbanopt/urbanopt-cli/issues/233 ), update rubocop configs to v4
36
+ - Fixed [#235]( https://github.com/urbanopt/urbanopt-cli/issues/235 ), Re-add old residential types to the commercial hash
37
+ - Fixed [#238]( https://github.com/urbanopt/urbanopt-cli/issues/238 ), Fix BuildingResidentialModel feature_id argument - JSON parse bug
38
+ - Fixed [#240]( https://github.com/urbanopt/urbanopt-cli/issues/240 ), Update example mappers from urbanopt-example-geojson-project
39
+ - Fixed [#242]( https://github.com/urbanopt/urbanopt-cli/issues/242 ), Add load_flexibility require to baseline mapper
40
+
3
41
  ## Version 0.6.0
4
42
 
5
43
  Date Range 3/31/21 - 4/30/21
data/CMakeLists.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  cmake_minimum_required(VERSION 3.10.2)
2
2
  cmake_policy(SET CMP0048 NEW)
3
3
 
4
- project(UrbanOptCLI VERSION 0.5.1)
4
+ project(UrbanOptCLI VERSION 0.6.2)
5
5
 
6
6
  include(FindOpenStudioSDK.cmake)
7
7
 
@@ -89,16 +89,16 @@ option(BUILD_PACKAGE "Build package" OFF)
89
89
  # need to update the MD5sum for each platform and url below
90
90
  if(UNIX)
91
91
  if(APPLE)
92
- set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20210315-darwin.tar.gz")
93
- set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "5df336da22c90534c8940c41e6489b37")
92
+ set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20210802-darwin.tar.gz ")
93
+ set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "5b607464c5f003477d11ddb73cb7d493")
94
94
  else()
95
- set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20210315-linux.tar.gz")
96
- set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "6e92becdac2d67046340daf16faea8b2")
95
+ set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20210802-linux.tar.gz")
96
+ set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "c43152b7235f70d3b875722cb83b5db8")
97
97
  endif()
98
98
  elseif(WIN32)
99
99
  if(CMAKE_CL_64)
100
- set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20210315-windows.tar.gz")
101
- set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "be2cde77dde2891d8111454bb280bbdc")
100
+ set(URBANOPT_CLI_GEMS_ZIP_FILENAME "urbanopt-cli-gems-20210809-windows.tar.gz")
101
+ set(URBANOPT_CLI_GEMS_ZIP_EXPECTED_MD5 "240892fcd96165ce1e3ef879c0367063")
102
102
  endif()
103
103
  endif()
104
104
 
@@ -125,15 +125,15 @@ set(RUBY_DIR "${PROJECT_BINARY_DIR}/ruby")
125
125
 
126
126
  if(UNIX)
127
127
  if(APPLE)
128
- set(RUBY_ZIP_FILENAME "ruby-2.5.5-darwin.tar.gz")
129
- set(RUBY_ZIP_EXPECTED_MD5 "27e3e91bd19f4edf1c04d31c7345ce5d")
128
+ set(RUBY_ZIP_FILENAME "ruby-2.7.2-darwin.tar.gz")
129
+ set(RUBY_ZIP_EXPECTED_MD5 "1ee27d6381797a5af7398f8eee8edb07")
130
130
  else()
131
- set(RUBY_ZIP_FILENAME "ruby-2.5.5-linux.tar.gz")
132
- set(RUBY_ZIP_EXPECTED_MD5 "5c9ab1aeb3366e6e579592cbb72ddbef")
131
+ set(RUBY_ZIP_FILENAME "ruby-2.7.2-linux.tar.gz")
132
+ set(RUBY_ZIP_EXPECTED_MD5 "853425b0c9878b064937f9e49688c6c6")
133
133
  endif()
134
134
  elseif(WIN32)
135
- set(RUBY_ZIP_FILENAME "ruby-2.5.1-win32.tar.gz")
136
- set(RUBY_ZIP_EXPECTED_MD5 "96495c32f5933250663df7561fdd6226")
135
+ set(RUBY_ZIP_FILENAME "ruby-2.7.2-win32.tar.gz")
136
+ set(RUBY_ZIP_EXPECTED_MD5 "414a24f3ebb074534d2186595683c5b4")
137
137
  endif()
138
138
 
139
139
  set(RUBY_ZIP_LOCAL_PATH "${PROJECT_BINARY_DIR}/${RUBY_ZIP_FILENAME}")
@@ -1,5 +1,5 @@
1
1
  set(OPENSTUDIO_VERSION_MAJOR 3)
2
- set(OPENSTUDIO_VERSION_MINOR 1)
2
+ set(OPENSTUDIO_VERSION_MINOR 2)
3
3
  set(OPENSTUDIO_VERSION_PATCH 0)
4
4
  set(OPENSTUDIO_VERSION "${OPENSTUDIO_VERSION_MAJOR}.${OPENSTUDIO_VERSION_MINOR}.${OPENSTUDIO_VERSION_PATCH}")
5
5
 
@@ -16,18 +16,23 @@ else()
16
16
  set(OPENSTUDIO_BASELINK "https://openstudio-builds.s3.amazonaws.com/${OPENSTUDIO_VERSION}"
17
17
  CACHE STRING "Base link to where the openstudio archives are hosted" FORCE)
18
18
 
19
- set(OPENSTUDIO_VERSION_SHA "+e165090621")
19
+ set(OPENSTUDIO_VERSION_SHA "+e11f0a08b2")
20
20
 
21
21
  if(APPLE)
22
- set(OPENSTUDIO_EXPECTED_HASH 20d74394f0889261ee1c382383461b0b)
22
+ set(OPENSTUDIO_EXPECTED_HASH 883c0f83ab7a09875e851726e32ba591)
23
23
  set(OPENSTUDIO_PLATFORM "Darwin")
24
24
  set(OPENSTUDIO_EXT "tar.gz")
25
25
  elseif(UNIX)
26
- set(OPENSTUDIO_EXPECTED_HASH 866cdac61ca955ce6d13ecf0fa5230a2)
27
- set(OPENSTUDIO_PLATFORM "Linux")
26
+ if(LSB_RELEASE_VERSION_SHORT MATCHES "20.04")
27
+ set(OPENSTUDIO_EXPECTED_HASH 25c4cfe614676376581657440ba447ae)
28
+ set(OPENSTUDIO_PLATFORM "Ubuntu-20.04")
29
+ else() # Assumes 18.04
30
+ set(OPENSTUDIO_EXPECTED_HASH 623d3e10c17f1dc99bb869deb8a2550e)
31
+ set(OPENSTUDIO_PLATFORM "Ubuntu-18.04")
32
+ endif()
28
33
  set(OPENSTUDIO_EXT "tar.gz")
29
34
  elseif(WIN32)
30
- set(OPENSTUDIO_EXPECTED_HASH aa04ed795c6d2b558df6175fad042f1f)
35
+ set(OPENSTUDIO_EXPECTED_HASH 740d5d8ba67ca914412e12c618d2cc28)
31
36
  set(OPENSTUDIO_PLATFORM "Windows")
32
37
  set(OPENSTUDIO_EXT "tar.gz")
33
38
  endif()
data/Gemfile CHANGED
@@ -42,13 +42,13 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
42
42
  # if allow_local && File.exist?('../urbanopt-geojson-gem')
43
43
  # gem 'urbanopt-geojson', path: '../urbanopt-geojson-gem'
44
44
  # elsif allow_local
45
- # gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
45
+ # gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
46
46
  # end
47
47
 
48
48
  # if allow_local && File.exist?('../urbanopt-reopt-gem')
49
- # gem 'urbanopt-reopt', path: '../urbanopt-reopt-gem'
49
+ # gem 'urbanopt-reopt', path: '../urbanopt-reopt-gem'
50
50
  # elsif allow_local
51
- # gem 'urbanopt-reopt', github: 'URBANopt/urbanopt-reopt-gem', branch: 'develop'
51
+ # gem 'urbanopt-reopt', github: 'URBANopt/urbanopt-reopt-gem', branch: 'develop'
52
52
  # end
53
53
 
54
54
  # if allow_local && File.exist?('../openstudio-load-flexibility-measures')
@@ -58,7 +58,13 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
58
58
  # end
59
59
 
60
60
  # if allow_local && File.exist?('../urbanopt-reporting-gem')
61
- # gem 'urbanopt-reporting', path: '../urbanopt-reporting-gem'
61
+ # gem 'urbanopt-reporting', path: '../urbanopt-reporting-gem'
62
62
  # elsif allow_local
63
- # gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
63
+ # gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
64
+ # end
65
+
66
+ # if allow_local && File.exist?('../urbanopt-rnm-us-gem')
67
+ # gem 'urbanopt-rnm-us', path: '../urbanopt-rnm-us-gem'
68
+ # elsif allow_local
69
+ # gem 'urbanopt-rnm-us', github: 'URBANopt/urbanopt-rnm-us-gem', branch: 'develop'
64
70
  # end
@@ -47,7 +47,7 @@ if allow_local && File.exist?('../openstudio-load-flexibility-measures-gem')
47
47
  elsif allow_local
48
48
  gem 'openstudio-load-flexibility-measures', github: 'NREL/openstudio-load-flexibility-measures-gem', branch: 'master'
49
49
  else
50
- gem 'openstudio-load-flexibility-measures', '~> 0.3.1'
50
+ gem 'openstudio-load-flexibility-measures', '~> 0.3.2'
51
51
  end
52
52
 
53
53
  if allow_local && File.exist?('../openstudio-ee-gem')
@@ -71,13 +71,16 @@ if allow_local && File.exists?('../urbanopt-geojson-gem')
71
71
  elsif allow_local
72
72
  gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
73
73
  else
74
- gem 'urbanopt-geojson', '~> 0.6.1'
74
+ gem 'urbanopt-geojson', '~> 0.6.6'
75
75
  end
76
76
 
77
+ # NEVER put SCENARIO-GEM in this file...it will make all simulations fail due to the sqlite dependency
78
+ # gem 'urbanopt-scenario', github: 'URBANopt/urbanopt-scenario-gem', branch: 'develop'
79
+
77
80
  if allow_local && File.exists?('../urbanopt-reporting-gem')
78
81
  gem 'urbanopt-reporting', path: '../urbanopt-reporting-gem'
79
82
  elsif allow_local
80
83
  gem 'urbanopt-reporting', github: 'URBANopt/urbanopt-reporting-gem', branch: 'develop'
81
84
  else
82
- gem 'urbanopt-reporting', '~> 0.4.0'
85
+ gem 'urbanopt-reporting', '~> 0.4.2'
83
86
  end
@@ -129,6 +129,11 @@
129
129
  "charge_start": "23:00",
130
130
  "inter_sp": 46
131
131
  }
132
+ },{
133
+ "measure_dir_name":"add_hpwh",
134
+ "arguments":{
135
+ "__SKIP__":true
136
+ }
132
137
  },{
133
138
  "measure_dir_name": "add_packaged_ice_storage",
134
139
  "arguments": {
@@ -144,6 +149,11 @@
144
149
  "feature_type": null,
145
150
  "feature_location": null
146
151
  }
152
+ },{
153
+ "measure_dir_name": "openstudio_results",
154
+ "arguments": {
155
+ "__SKIP__": true
156
+ }
147
157
  }
148
158
  ],
149
159
  "name": null,
@@ -147,7 +147,11 @@
147
147
  "building_type": "Food service",
148
148
  "floor_area": 125631,
149
149
  "footprint_area": 41877,
150
- "number_of_stories": 3
150
+ "number_of_stories": 3,
151
+ "weekday_start_time": "11:00",
152
+ "weekday_duration": "11:30",
153
+ "weekend_start_time": "11:00",
154
+ "weekend_duration": "11:30"
151
155
  },
152
156
  "geometry": {
153
157
  "type": "Polygon",
@@ -186,7 +190,11 @@
186
190
  "building_type": "Food service",
187
191
  "floor_area": 31623,
188
192
  "footprint_area": 10541,
189
- "number_of_stories": 3
193
+ "number_of_stories": 3,
194
+ "weekday_start_time": "06:00",
195
+ "weekday_duration": "07:00",
196
+ "weekend_start_time": "08:00",
197
+ "weekend_duration": "05:00"
190
198
  },
191
199
  "geometry": {
192
200
  "type": "Polygon",
@@ -225,7 +233,9 @@
225
233
  "building_type": "Food service",
226
234
  "floor_area": 8804,
227
235
  "footprint_area": 8804,
228
- "number_of_stories": 1
236
+ "number_of_stories": 1,
237
+ "weekday_start_time": "06:00",
238
+ "weekday_duration": "16:00"
229
239
  },
230
240
  "geometry": {
231
241
  "type": "Polygon",