urbanopt-rnm-us 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 977f93affe9c5d526cd2cb0af1232f443e07693a78d45da7827563f9f804c30e
4
- data.tar.gz: 03e3f2642b6ddc140b36d9385e0a77790e1308a1f5bd1b96647775d03f4e4830
3
+ metadata.gz: 48d2e5b31538bcf737ce6e1d6d6c581dcfa8cddf779c6c2174590d9a9784a878
4
+ data.tar.gz: fc4973c31698c5461451c675e47d4ae837aef99e314684e37d35caea0da18e2f
5
5
  SHA512:
6
- metadata.gz: e86574dc52de1655eace0ba423350343257cb234a2e110a2670fd80163fe07fc2f6b7ab7cf56decb02260bcf307b8620ddde128bb9c157ceeb6a94f59487dd16
7
- data.tar.gz: 8e7bba90ab83607932f8eecc5bda1487d86c5da2864a32d92fd88d3ae20d4aa18f8567244042dc66a9e640304aa65a0ec44f9090f6a2472124aa191be27db523
6
+ metadata.gz: 800c18d91f1bb12ed9e46ca6a14a810d570fad5b4eb08e66e7dcca79507676545b53cb49db0f1046ec8b2dbdfeccc2d2c3eb3863b3f12699d79fd9bd1aa256a8
7
+ data.tar.gz: 865a614718260125d16e49fa459d90826b8b86519ec8e75dc1ebdee61b12de8e386a6763ae89599e3fa050f5666b0b3a8ac4636f2f224ffd0b868b2b9e9007fb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.4.0
4
+ Date Range 05/10/22 - 9/30/22
5
+
6
+ - Breaking changes to electrical catalog used and compatible RNM-US executable.
7
+ - Update API to version 2. API v1 still working for older URBANopt SDK releases but no longer working for future versions.
8
+
9
+ ## Version 0.3.0
10
+ Date Range 11/23/21 - 05/10/22
11
+
12
+ - Update copyrights
13
+
3
14
  ## Version 0.2.0
4
15
 
5
16
  Date Range 11/09/21 - 11/22/21
data/Gemfile CHANGED
@@ -8,3 +8,9 @@ allow_local = ENV['FAVOR_LOCAL_GEMS']
8
8
 
9
9
  # Below is an example of how to configure the gemfile for developing with local gems
10
10
  # modify as appropriate
11
+
12
+ if allow_local && File.exists?('../urbanopt-geojson-gem')
13
+ gem 'urbanopt-geojson', path: '../urbanopt-geojson-gem'
14
+ elsif allow_local
15
+ gem 'urbanopt-geojson', github: 'URBANopt/urbanopt-geojson-gem', branch: 'develop'
16
+ end
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- URBANopt (tm), Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
1
+ URBANopt (tm), Copyright (c) 2019-2022, Alliance for Sustainable Energy, LLC, and other
2
2
  contributors. All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification,
@@ -35,4 +35,4 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
35
35
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
36
36
  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
37
37
  OF THE POSSIBILITY OF SUCH DAMAGE.
38
- *********************************************************************************
38
+ *********************************************************************************
data/README.md CHANGED
@@ -42,6 +42,13 @@ An OpenDSS-formatted catalog can be generated from the extended catalog with the
42
42
  bundle exec rake create_opendss_catalog[/desired/path/to/opendss_catalog.json]
43
43
  ```
44
44
 
45
+ ## RNM-US API compatibility
46
+
47
+ | API Version | RNM-US Gem Version | RNM-US exe Version |
48
+ | ----------- | ----------- | ---------------- |
49
+ | v1 | 0.3.0 and earlier | RNM-US_20220819 |
50
+ | v2 | 0.4.0 | RNM-US_20220927 |
51
+
45
52
  ## Testing
46
53
 
47
54
  ```bash
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  # *********************************************************************************
2
- # URBANopt (tm), Copyright (c) 2019-2021, Alliance for Sustainable Energy, LLC, and other
2
+ # URBANopt (tm), Copyright (c) 2019-2022, Alliance for Sustainable Energy, LLC, and other
3
3
  # contributors. All rights reserved.
4
4
 
5
5
  # Redistribution and use in source and binary forms, with or without modification,
@@ -94,7 +94,7 @@ end
94
94
  desc 'Create input files with defaults'
95
95
  task :create_inputs_default, [:scenario_csv_path, :feature_file_path] do |t, args|
96
96
  puts 'Creating input files with defaulted settings'
97
- # if no path passed in, use default:
97
+ # if no path passed in, use default:
98
98
  scenario_csv_path = args[:scenario_csv_path] || 'spec/test/example_project/baseline_scenario.csv'
99
99
  root_dir, scenario_file_name = File.split(File.expand_path(scenario_csv_path))
100
100
  scenario_name = File.basename(scenario_file_name, File.extname(scenario_file_name))
@@ -164,3 +164,34 @@ task :create_opendss_catalog, [:save_path] do |t, args|
164
164
  puts "Catalog saved to #{save_path}"
165
165
  puts '....done!'
166
166
  end
167
+
168
+
169
+ # run validation
170
+ # pass in the path to the scenario csv
171
+ desc 'Run Validation'
172
+ task :run_validation, [:scenario_csv_path, :reopt, :use_localhost] do |t, args|
173
+ #Exammple to run validation
174
+ #bundle exec rake run_validation[D:/.../urbanopt-rnm-us-gem/spec/files/example_project/baseline_scenario.csv]
175
+ puts 'Running OpenDSS validation'
176
+ # if no path passed in, use default:
177
+ scenario_csv = args[:scenario_csv_path] || 'spec/test/example_project/run/baseline_scenario'
178
+ root_dir, scenario_file_name = File.split(File.expand_path(scenario_csv))
179
+ scenario_name = File.basename(scenario_file_name, File.extname(scenario_file_name))
180
+ run_dir = File.join(root_dir, 'run', scenario_name.downcase)
181
+
182
+ rnm_dir = File.join(run_dir, 'rnm-us')
183
+
184
+
185
+
186
+
187
+ if !File.exist?(rnm_dir)
188
+ puts rnm_dir
189
+ raise 'No rnm-us directory found for this scenario...run the create_inputs rake task first.'
190
+ end
191
+
192
+ puts "run dir path: #{run_dir}"
193
+ validation = URBANopt::RNM::Validation.new(rnm_dir)
194
+ validation.run_validation()
195
+
196
+ puts '...done!'
197
+ end