urbanopt-rnm-us 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 843ba686ad41687f6890709b5d53d3b30ed8bac33cfe726a0e907f2c0fe1e26f
4
- data.tar.gz: 22cf46e48542910962f8c29da8c6721b885513bdd9f130083ae48b94028a264f
3
+ metadata.gz: 48d2e5b31538bcf737ce6e1d6d6c581dcfa8cddf779c6c2174590d9a9784a878
4
+ data.tar.gz: fc4973c31698c5461451c675e47d4ae837aef99e314684e37d35caea0da18e2f
5
5
  SHA512:
6
- metadata.gz: 995c88f12b677995d076315afffc5254a6a2ba321926738d754b7e8d540396353a24ac357dc34d6d8754dd763eecae75dfea3f9ce6163203e00961ce48f8ae7d
7
- data.tar.gz: c1913789eba31eb44bf3fa4f6abfb7a11715c0ccefd2b739d739c7c92c7636187945309de5f8fb3e7783ebc8c50fe1cd1b76ef3a040c898117f937e8c47c5065
6
+ metadata.gz: 800c18d91f1bb12ed9e46ca6a14a810d570fad5b4eb08e66e7dcca79507676545b53cb49db0f1046ec8b2dbdfeccc2d2c3eb3863b3f12699d79fd9bd1aa256a8
7
+ data.tar.gz: 865a614718260125d16e49fa459d90826b8b86519ec8e75dc1ebdee61b12de8e386a6763ae89599e3fa050f5666b0b3a8ac4636f2f224ffd0b868b2b9e9007fb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## Version 0.3.0
4
10
  Date Range 11/23/21 - 05/10/22
5
11
 
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
@@ -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