urbanopt-scenario 0.4.4 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -3
- data/CHANGELOG.md +32 -0
- data/Gemfile +8 -14
- data/LICENSE.md +29 -17
- data/Rakefile +16 -6
- data/docs/package-lock.json +20325 -2011
- data/docs/package.json +6 -2
- data/lib/urbanopt-scenario.rb +16 -6
- data/lib/urbanopt/scenario.rb +16 -6
- data/lib/urbanopt/scenario/default_reports.rb +16 -6
- data/lib/urbanopt/scenario/extension.rb +16 -6
- data/lib/urbanopt/scenario/logger.rb +17 -7
- data/lib/urbanopt/scenario/scenario_base.rb +16 -6
- data/lib/urbanopt/scenario/scenario_csv.rb +47 -20
- data/lib/urbanopt/scenario/scenario_datapoint_base.rb +21 -11
- data/lib/urbanopt/scenario/scenario_post_processor_base.rb +16 -6
- data/lib/urbanopt/scenario/scenario_post_processor_default.rb +20 -12
- data/lib/urbanopt/scenario/scenario_post_processor_opendss.rb +24 -14
- data/lib/urbanopt/scenario/scenario_runner_base.rb +16 -6
- data/lib/urbanopt/scenario/scenario_runner_osw.rb +20 -9
- data/lib/urbanopt/scenario/scenario_visualization.rb +28 -17
- data/lib/urbanopt/scenario/simulation_dir_base.rb +17 -11
- data/lib/urbanopt/scenario/simulation_dir_osw.rb +19 -7
- data/lib/urbanopt/scenario/simulation_mapper_base.rb +16 -6
- data/lib/urbanopt/scenario/version.rb +17 -7
- data/urbanopt-scenario-gem.gemspec +14 -9
- metadata +10 -66
@@ -1,21 +1,31 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, 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,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -1,21 +1,31 @@
|
|
1
1
|
# *********************************************************************************
|
2
|
-
# URBANopt
|
2
|
+
# URBANopt™, Copyright (c) 2019-2021, 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,
|
6
6
|
# are permitted provided that the following conditions are met:
|
7
|
-
|
7
|
+
|
8
8
|
# Redistributions of source code must retain the above copyright notice, this list
|
9
9
|
# of conditions and the following disclaimer.
|
10
|
-
|
10
|
+
|
11
11
|
# Redistributions in binary form must reproduce the above copyright notice, this
|
12
12
|
# list of conditions and the following disclaimer in the documentation and/or other
|
13
13
|
# materials provided with the distribution.
|
14
|
-
|
14
|
+
|
15
15
|
# Neither the name of the copyright holder nor the names of its contributors may be
|
16
16
|
# used to endorse or promote products derived from this software without specific
|
17
17
|
# prior written permission.
|
18
|
-
|
18
|
+
|
19
|
+
# Redistribution of this software, without modification, must refer to the software
|
20
|
+
# by the same designation. Redistribution of a modified version of this software
|
21
|
+
# (i) may not refer to the modified version by the same designation, or by any
|
22
|
+
# confusingly similar designation, and (ii) must refer to the underlying software
|
23
|
+
# originally provided by Alliance as “URBANopt”. Except to comply with the foregoing,
|
24
|
+
# the term “URBANopt”, or any confusingly similar designation may not be used to
|
25
|
+
# refer to any modified version of this software or any modified version of the
|
26
|
+
# underlying software originally provided by Alliance without the prior written
|
27
|
+
# consent of Alliance.
|
28
|
+
|
19
29
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
20
30
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
21
31
|
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
@@ -30,6 +40,6 @@
|
|
30
40
|
|
31
41
|
module URBANopt
|
32
42
|
module Scenario
|
33
|
-
VERSION = '0.
|
43
|
+
VERSION = '0.6.2'.freeze
|
34
44
|
end
|
35
45
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
lib = File.expand_path('lib', __dir__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'urbanopt/scenario/version'
|
@@ -22,19 +21,25 @@ Gem::Specification.new do |spec|
|
|
22
21
|
spec.bindir = 'exe'
|
23
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
23
|
spec.require_paths = ['lib']
|
25
|
-
spec.required_ruby_version = '~> 2.
|
24
|
+
spec.required_ruby_version = '~> 2.7.0'
|
26
25
|
|
27
26
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
28
27
|
spec.add_development_dependency 'rake', '~> 13.0'
|
29
28
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
30
29
|
|
31
|
-
spec.add_runtime_dependency 'json-schema', '~> 2.8'
|
32
30
|
spec.add_runtime_dependency 'json_pure', '~> 2.3'
|
33
|
-
spec.add_runtime_dependency '
|
34
|
-
|
35
|
-
spec.add_runtime_dependency 'openstudio-load-flexibility-measures', '~> 0.1.3'
|
36
|
-
spec.add_runtime_dependency 'openstudio-model-articulation', '0.2.0'
|
31
|
+
spec.add_runtime_dependency 'json-schema', '~> 2.8'
|
32
|
+
|
37
33
|
spec.add_runtime_dependency 'sqlite3', '1.4.2'
|
38
|
-
spec.add_runtime_dependency 'urbanopt-core', '~> 0.
|
39
|
-
spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.
|
34
|
+
spec.add_runtime_dependency 'urbanopt-core', '~> 0.6.1'
|
35
|
+
spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.4.1'
|
36
|
+
|
37
|
+
# no longer need the below
|
38
|
+
# need to include all measure gems listed in mappers in project gemfiles
|
39
|
+
# scenario_csv loads the mappers and need access to the extension gems when they are added to a mapper
|
40
|
+
# spec.add_runtime_dependency 'openstudio-calibration', '~> 0.3.1'
|
41
|
+
# spec.add_runtime_dependency 'openstudio-common-measures', '~> 0.3.2'
|
42
|
+
# spec.add_runtime_dependency 'openstudio-ee', '~> 0.3.2'
|
43
|
+
# spec.add_runtime_dependency 'openstudio-load-flexibility-measures', '~> 0.2.1'
|
44
|
+
# spec.add_runtime_dependency 'openstudio-model-articulation', '~> 0.3.1'
|
40
45
|
end
|
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.
|
4
|
+
version: 0.6.2
|
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:
|
12
|
+
date: 2021-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -53,20 +53,6 @@ dependencies:
|
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.7'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: json-schema
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '2.8'
|
63
|
-
type: :runtime
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - "~>"
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '2.8'
|
70
56
|
- !ruby/object:Gem::Dependency
|
71
57
|
name: json_pure
|
72
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,61 +68,19 @@ dependencies:
|
|
82
68
|
- !ruby/object:Gem::Version
|
83
69
|
version: '2.3'
|
84
70
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - '='
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: 0.2.0
|
91
|
-
type: :runtime
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - '='
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: 0.2.0
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: openstudio-extension
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - "~>"
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: 0.2.5
|
105
|
-
type: :runtime
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - "~>"
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: 0.2.5
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: openstudio-load-flexibility-measures
|
71
|
+
name: json-schema
|
114
72
|
requirement: !ruby/object:Gem::Requirement
|
115
73
|
requirements:
|
116
74
|
- - "~>"
|
117
75
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
76
|
+
version: '2.8'
|
119
77
|
type: :runtime
|
120
78
|
prerelease: false
|
121
79
|
version_requirements: !ruby/object:Gem::Requirement
|
122
80
|
requirements:
|
123
81
|
- - "~>"
|
124
82
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: openstudio-model-articulation
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - '='
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: 0.2.0
|
133
|
-
type: :runtime
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - '='
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: 0.2.0
|
83
|
+
version: '2.8'
|
140
84
|
- !ruby/object:Gem::Dependency
|
141
85
|
name: sqlite3
|
142
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,28 +101,28 @@ dependencies:
|
|
157
101
|
requirements:
|
158
102
|
- - "~>"
|
159
103
|
- !ruby/object:Gem::Version
|
160
|
-
version: 0.
|
104
|
+
version: 0.6.1
|
161
105
|
type: :runtime
|
162
106
|
prerelease: false
|
163
107
|
version_requirements: !ruby/object:Gem::Requirement
|
164
108
|
requirements:
|
165
109
|
- - "~>"
|
166
110
|
- !ruby/object:Gem::Version
|
167
|
-
version: 0.
|
111
|
+
version: 0.6.1
|
168
112
|
- !ruby/object:Gem::Dependency
|
169
113
|
name: urbanopt-reporting
|
170
114
|
requirement: !ruby/object:Gem::Requirement
|
171
115
|
requirements:
|
172
116
|
- - "~>"
|
173
117
|
- !ruby/object:Gem::Version
|
174
|
-
version: 0.
|
118
|
+
version: 0.4.1
|
175
119
|
type: :runtime
|
176
120
|
prerelease: false
|
177
121
|
version_requirements: !ruby/object:Gem::Requirement
|
178
122
|
requirements:
|
179
123
|
- - "~>"
|
180
124
|
- !ruby/object:Gem::Version
|
181
|
-
version: 0.
|
125
|
+
version: 0.4.1
|
182
126
|
description: Library to export data point OSW files from URBANopt Scenario CSV
|
183
127
|
email:
|
184
128
|
- rawad.elkontar@nrel.gov
|
@@ -246,7 +190,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
246
190
|
requirements:
|
247
191
|
- - "~>"
|
248
192
|
- !ruby/object:Gem::Version
|
249
|
-
version: 2.
|
193
|
+
version: 2.7.0
|
250
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
195
|
requirements:
|
252
196
|
- - ">="
|