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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +7 -0
- data/Rakefile +31 -0
- data/catalogs/extended_catalog.json +1928 -1796
- data/lib/urbanopt/rnm/api_client.rb +2 -2
- data/lib/urbanopt/rnm/consumers.rb +3 -2
- data/lib/urbanopt/rnm/input_files.rb +1 -1
- data/lib/urbanopt/rnm/prosumers.rb +2 -2
- data/lib/urbanopt/rnm/runner.rb +10 -0
- data/lib/urbanopt/rnm/transformer_opendss.rb +1 -5
- data/lib/urbanopt/rnm/validation/main_validation.py +51 -0
- data/lib/urbanopt/rnm/validation/opendss_interface.py +234 -0
- data/lib/urbanopt/rnm/validation/plot_lib.py +222 -0
- data/lib/urbanopt/rnm/validation.rb +75 -0
- data/lib/urbanopt/rnm/version.rb +1 -1
- data/lib/urbanopt/rnm.rb +1 -0
- data/opendss_catalog.json +2216 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48d2e5b31538bcf737ce6e1d6d6c581dcfa8cddf779c6c2174590d9a9784a878
|
4
|
+
data.tar.gz: fc4973c31698c5461451c675e47d4ae837aef99e314684e37d35caea0da18e2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|