urbanopt-scenario 0.4.1 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,10 +37,10 @@ module URBANopt
37
37
  # SimulationDirOSW creates a OSW file to simulate features, a SimulationMapperBase is invoked to translate features to OSW.
38
38
  ##
39
39
  # [parameters:]
40
- # +scenario+ - _ScenarioBase_ - Scenario containing this SimulationFileBase.
41
- # +features+ - _Array_ - Array of Features this SimulationFile represents.
42
- # +feature_names+ - _Array_ - Array of scenario specific names for these Features.
43
- # +mapper_class+ - _String_ - Name of class derived frmo SimulationMapperBase used to translate feature to simulation OSW.
40
+ # * +scenario+ - _ScenarioBase_ - Scenario containing this SimulationFileBase.
41
+ # * +features+ - _Array_ - Array of Features this SimulationFile represents.
42
+ # * +feature_names+ - _Array_ - Array of scenario specific names for these Features.
43
+ # * +mapper_class+ - _String_ - Name of class derived frmo SimulationMapperBase used to translate feature to simulation OSW.
44
44
  def initialize(scenario, features, feature_names, mapper_class)
45
45
  super(scenario, features, feature_names)
46
46
 
@@ -36,9 +36,9 @@ module URBANopt
36
36
 
37
37
  # create osw file given a ScenarioBase object, features, and feature_names
38
38
  # [parameters:]
39
- # +scenario+ - _ScenarioBase_ - An object of ScenarioBase class.
40
- # +features+ - _Array_ - Array of Features.
41
- # +feature_names+ - _Array_ - Array of scenario specific names for these Features.
39
+ # * +scenario+ - _ScenarioBase_ - An object of ScenarioBase class.
40
+ # * +features+ - _Array_ - Array of Features.
41
+ # * +feature_names+ - _Array_ - Array of scenario specific names for these Features.
42
42
  def create_osw(scenario, features, feature_names)
43
43
  raise 'create_osw not implemented for SimulationMapperBase, override in your class'
44
44
  end
@@ -30,6 +30,6 @@
30
30
 
31
31
  module URBANopt
32
32
  module Scenario
33
- VERSION = '0.4.1'.freeze
33
+ VERSION = '0.5.1'.freeze
34
34
  end
35
35
  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'
@@ -30,11 +29,19 @@ Gem::Specification.new do |spec|
30
29
 
31
30
  spec.add_runtime_dependency 'json-schema', '~> 2.8'
32
31
  spec.add_runtime_dependency 'json_pure', '~> 2.3'
33
- spec.add_runtime_dependency 'openstudio-common-measures', '~> 0.2.0'
34
- spec.add_runtime_dependency 'openstudio-extension', '~> 0.2.5'
35
- spec.add_runtime_dependency 'openstudio-load-flexibility-measures', '~> 0.1.3'
36
- spec.add_runtime_dependency 'openstudio-model-articulation', '~> 0.2.0'
32
+
37
33
  spec.add_runtime_dependency 'sqlite3', '1.4.2'
38
- spec.add_runtime_dependency 'urbanopt-core', '~> 0.4.0'
39
- spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.2.0'
34
+ spec.add_runtime_dependency 'urbanopt-core', '~> 0.5.1'
35
+ spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.3.6'
36
+
37
+ # extension gem is included in urbanopt-core so we shouldn't need to explicitly require it here
38
+ # spec.add_runtime_dependency 'openstudio-extension', '~> 0.3.1'
39
+
40
+ # need to include all measure gems listed in mappers in project gemfiles
41
+ # scenario_csv loads the mappers and need access to the extension gems when they are added to a mapper
42
+ spec.add_runtime_dependency 'openstudio-calibration', '~> 0.3.1'
43
+ spec.add_runtime_dependency 'openstudio-common-measures', '~> 0.3.2'
44
+ spec.add_runtime_dependency 'openstudio-ee', '~> 0.3.2'
45
+ spec.add_runtime_dependency 'openstudio-load-flexibility-measures', '~> 0.2.1'
46
+ spec.add_runtime_dependency 'openstudio-model-articulation', '~> 0.3.1'
40
47
  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.1
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-09-28 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
@@ -82,103 +82,117 @@ dependencies:
82
82
  - !ruby/object:Gem::Version
83
83
  version: '2.3'
84
84
  - !ruby/object:Gem::Dependency
85
- name: openstudio-common-measures
85
+ name: sqlite3
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '='
89
+ - !ruby/object:Gem::Version
90
+ version: 1.4.2
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '='
96
+ - !ruby/object:Gem::Version
97
+ version: 1.4.2
98
+ - !ruby/object:Gem::Dependency
99
+ name: urbanopt-core
86
100
  requirement: !ruby/object:Gem::Requirement
87
101
  requirements:
88
102
  - - "~>"
89
103
  - !ruby/object:Gem::Version
90
- version: 0.2.0
104
+ version: 0.5.1
91
105
  type: :runtime
92
106
  prerelease: false
93
107
  version_requirements: !ruby/object:Gem::Requirement
94
108
  requirements:
95
109
  - - "~>"
96
110
  - !ruby/object:Gem::Version
97
- version: 0.2.0
111
+ version: 0.5.1
98
112
  - !ruby/object:Gem::Dependency
99
- name: openstudio-extension
113
+ name: urbanopt-reporting
100
114
  requirement: !ruby/object:Gem::Requirement
101
115
  requirements:
102
116
  - - "~>"
103
117
  - !ruby/object:Gem::Version
104
- version: 0.2.5
118
+ version: 0.3.6
105
119
  type: :runtime
106
120
  prerelease: false
107
121
  version_requirements: !ruby/object:Gem::Requirement
108
122
  requirements:
109
123
  - - "~>"
110
124
  - !ruby/object:Gem::Version
111
- version: 0.2.5
125
+ version: 0.3.6
112
126
  - !ruby/object:Gem::Dependency
113
- name: openstudio-load-flexibility-measures
127
+ name: openstudio-calibration
114
128
  requirement: !ruby/object:Gem::Requirement
115
129
  requirements:
116
130
  - - "~>"
117
131
  - !ruby/object:Gem::Version
118
- version: 0.1.3
132
+ version: 0.3.1
119
133
  type: :runtime
120
134
  prerelease: false
121
135
  version_requirements: !ruby/object:Gem::Requirement
122
136
  requirements:
123
137
  - - "~>"
124
138
  - !ruby/object:Gem::Version
125
- version: 0.1.3
139
+ version: 0.3.1
126
140
  - !ruby/object:Gem::Dependency
127
- name: openstudio-model-articulation
141
+ name: openstudio-common-measures
128
142
  requirement: !ruby/object:Gem::Requirement
129
143
  requirements:
130
144
  - - "~>"
131
145
  - !ruby/object:Gem::Version
132
- version: 0.2.0
146
+ version: 0.3.2
133
147
  type: :runtime
134
148
  prerelease: false
135
149
  version_requirements: !ruby/object:Gem::Requirement
136
150
  requirements:
137
151
  - - "~>"
138
152
  - !ruby/object:Gem::Version
139
- version: 0.2.0
153
+ version: 0.3.2
140
154
  - !ruby/object:Gem::Dependency
141
- name: sqlite3
155
+ name: openstudio-ee
142
156
  requirement: !ruby/object:Gem::Requirement
143
157
  requirements:
144
- - - '='
158
+ - - "~>"
145
159
  - !ruby/object:Gem::Version
146
- version: 1.4.2
160
+ version: 0.3.2
147
161
  type: :runtime
148
162
  prerelease: false
149
163
  version_requirements: !ruby/object:Gem::Requirement
150
164
  requirements:
151
- - - '='
165
+ - - "~>"
152
166
  - !ruby/object:Gem::Version
153
- version: 1.4.2
167
+ version: 0.3.2
154
168
  - !ruby/object:Gem::Dependency
155
- name: urbanopt-core
169
+ name: openstudio-load-flexibility-measures
156
170
  requirement: !ruby/object:Gem::Requirement
157
171
  requirements:
158
172
  - - "~>"
159
173
  - !ruby/object:Gem::Version
160
- version: 0.4.0
174
+ version: 0.2.1
161
175
  type: :runtime
162
176
  prerelease: false
163
177
  version_requirements: !ruby/object:Gem::Requirement
164
178
  requirements:
165
179
  - - "~>"
166
180
  - !ruby/object:Gem::Version
167
- version: 0.4.0
181
+ version: 0.2.1
168
182
  - !ruby/object:Gem::Dependency
169
- name: urbanopt-reporting
183
+ name: openstudio-model-articulation
170
184
  requirement: !ruby/object:Gem::Requirement
171
185
  requirements:
172
186
  - - "~>"
173
187
  - !ruby/object:Gem::Version
174
- version: 0.2.0
188
+ version: 0.3.1
175
189
  type: :runtime
176
190
  prerelease: false
177
191
  version_requirements: !ruby/object:Gem::Requirement
178
192
  requirements:
179
193
  - - "~>"
180
194
  - !ruby/object:Gem::Version
181
- version: 0.2.0
195
+ version: 0.3.1
182
196
  description: Library to export data point OSW files from URBANopt Scenario CSV
183
197
  email:
184
198
  - rawad.elkontar@nrel.gov
@@ -205,16 +219,15 @@ files:
205
219
  - docs/.gitignore
206
220
  - docs/.vuepress/components/InnerJsonSchema.vue
207
221
  - docs/.vuepress/components/JsonSchema.vue
208
- - docs/.vuepress/components/ScenarioSchema.vue
209
222
  - docs/.vuepress/components/StaticLink.vue
210
223
  - docs/.vuepress/config.js
211
224
  - docs/.vuepress/highlight.js
225
+ - docs/.vuepress/json-schema-deref-loader.js
212
226
  - docs/.vuepress/public/custom_rdoc_styles.css
213
227
  - docs/.vuepress/utils.js
214
228
  - docs/README.md
215
229
  - docs/package-lock.json
216
230
  - docs/package.json
217
- - docs/schemas/scenario-schema.md
218
231
  - lib/urbanopt-scenario.rb
219
232
  - lib/urbanopt/scenario.rb
220
233
  - lib/urbanopt/scenario/default_reports.rb
@@ -1,12 +0,0 @@
1
- <template>
2
- <JsonSchema :schema="schema"/>
3
- </template>
4
- <script>
5
- import { default as schema } from "../../../lib/urbanopt/scenario/default_reports/schema/scenario_schema.json";
6
- export default {
7
- name: "ScenarioSchema",
8
- data() {
9
- return { schema };
10
- }
11
- };
12
- </script>
@@ -1,3 +0,0 @@
1
- # Scenario Schema
2
-
3
- <ScenarioSchema />