urbanopt-scenario 0.5.0 → 0.5.1

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: ce993cb2d0b84e9bdd3752f756f30ab4f7f76f1c1d131f22676bc7eff10e0c21
4
- data.tar.gz: ed13f7ee0040f66731c329de9ffaaf14be1785cc0090df3dfd1f60d5e6a8bb28
3
+ metadata.gz: 0e70e349c3e8e3a2ed95e984bb8d9afff62f4b7d3d05dd5d1c3af5448356640c
4
+ data.tar.gz: 87bfe0c16d75de1b426f3d4d765e15c988c47e8386db4e31211ad3f7b2f0adb0
5
5
  SHA512:
6
- metadata.gz: ea718d11c526798859af76a456c81e5bf91389a25fed90d48fde41ec16cae81799533c333abf9334c27f77f38a2d393224ab9780a67b642e4c3bc92f7e6e91f8
7
- data.tar.gz: a498be996e7a602c7c011894cadb68544a327f28a7fd6bd46a7c38de91759c4a246228b858b7b097620eeb5fcdcd052462d6bff28c5fad1d9ee981f60e18c551
6
+ metadata.gz: fea7dd61f661293995c67bc5b93ac366fc176d9038649bf4048db583aa43726c125c763e0aa789db6a1f7a4f591909f0904124e47547e2b94eb30a19597db8b7
7
+ data.tar.gz: a85b86e65b2c14977db4c57f1beda4204605cc3ac2b1c22953118c305a657a40745239ffff9caf712179fb2da0bf2933b156eb6b03cddcb90e1c03725b7972b2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # URBANopt Scenario Gem
2
2
 
3
+ ## Version 0.5.1
4
+ Date Range: 12/15/20 - 02/04/21
5
+
6
+ - Fixed [#175]( https://github.com/urbanopt/urbanopt-scenario-gem/issues/175 ), Need additional reporting output to supply to DES (Modelica) team
7
+ - Fixed [#194]( https://github.com/urbanopt/urbanopt-scenario-gem/issues/194 ), In the visualization reports, update graphs to show names of features and not feature ids
8
+ - Fixed [#196]( https://github.com/urbanopt/urbanopt-scenario-gem/issues/196 ), In opendss postprocessor: update scenario reports saving method to not save the feature reports.
9
+
3
10
  ## Version 0.5.0
4
11
  Date Range: 11/17/20 - 12/09/20
5
12
 
@@ -4602,10 +4602,7 @@
4602
4602
  "global-dirs": {
4603
4603
  "version": "2.0.1",
4604
4604
  "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz",
4605
- "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==",
4606
- "requires": {
4607
- "ini": "^1.3.5"
4608
- }
4605
+ "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A=="
4609
4606
  },
4610
4607
  "globals": {
4611
4608
  "version": "11.12.0",
@@ -5130,9 +5127,10 @@
5130
5127
  "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
5131
5128
  },
5132
5129
  "ini": {
5133
- "version": "1.3.5",
5134
- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
5135
- "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw=="
5130
+ "version": "2.0.0",
5131
+ "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",
5132
+ "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==",
5133
+ "dev": true
5136
5134
  },
5137
5135
  "internal-ip": {
5138
5136
  "version": "4.3.0",
@@ -7470,7 +7468,6 @@
7470
7468
  "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
7471
7469
  "requires": {
7472
7470
  "deep-extend": "^0.6.0",
7473
- "ini": "~1.3.0",
7474
7471
  "minimist": "^1.2.0",
7475
7472
  "strip-json-comments": "~2.0.1"
7476
7473
  }
data/docs/package.json CHANGED
@@ -25,6 +25,7 @@
25
25
  "node-forge": ">=0.10.0",
26
26
  "serialize-javascript": "^5.0.1",
27
27
  "set-value": "^3.0.2",
28
- "yargs-parser": "^20.2.1"
28
+ "yargs-parser": "^20.2.1",
29
+ "ini": "^2.0.0"
29
30
  }
30
31
  }
@@ -267,7 +267,8 @@ module URBANopt
267
267
  save_transformers_reports
268
268
 
269
269
  # save the updated scenario reports
270
- @scenario_report.save(file_name = 'scenario_report_opendss')
270
+ # set save_feature_reports to false since only the scenario reports should be saved now
271
+ @scenario_report.save(file_name = 'scenario_report_opendss', save_feature_reports = false)
271
272
  end
272
273
  end
273
274
  end
@@ -35,16 +35,18 @@ require 'json'
35
35
  module URBANopt
36
36
  module Scenario
37
37
  class ResultVisualization
38
- def self.create_visualization(run_dir, feature = true)
38
+ def self.create_visualization(run_dir, feature = true, feature_names = false)
39
39
  @all_results = []
40
+
40
41
  run_dir.each do |folder|
41
- name = folder.split('/')[-1]
42
-
43
42
  # create visualization for scenarios
44
43
  if feature == false
44
+ name = folder.split('/')[-1]
45
45
  csv_dir = File.join(folder, 'default_scenario_report.csv')
46
46
  # create visualization for features
47
47
  elsif feature == true
48
+ index = run_dir.index(folder)
49
+ name = folder.split('/')[-1] + '-' + feature_names[index]
48
50
  csv_dir = File.join(folder, 'feature_reports/default_feature_report.csv')
49
51
  end
50
52
 
@@ -30,6 +30,6 @@
30
30
 
31
31
  module URBANopt
32
32
  module Scenario
33
- VERSION = '0.5.0'.freeze
33
+ VERSION = '0.5.1'.freeze
34
34
  end
35
35
  end
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.add_runtime_dependency 'sqlite3', '1.4.2'
34
34
  spec.add_runtime_dependency 'urbanopt-core', '~> 0.5.1'
35
- spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.3.2'
35
+ spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.3.6'
36
36
 
37
37
  # extension gem is included in urbanopt-core so we shouldn't need to explicitly require it here
38
38
  # spec.add_runtime_dependency 'openstudio-extension', '~> 0.3.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanopt-scenario
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rawad El Kontar
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-12-11 00:00:00.000000000 Z
12
+ date: 2021-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -115,14 +115,14 @@ dependencies:
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 0.3.2
118
+ version: 0.3.6
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: 0.3.2
125
+ version: 0.3.6
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: openstudio-calibration
128
128
  requirement: !ruby/object:Gem::Requirement