urbanopt-scenario 0.5.1 → 0.6.3
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 +25 -0
- data/Gemfile +3 -2
- data/LICENSE.md +29 -17
- data/Rakefile +16 -6
- data/docs/package-lock.json +20329 -2005
- data/docs/package.json +7 -4
- 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 -10
- data/lib/urbanopt/scenario/scenario_post_processor_opendss.rb +22 -12
- 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 +46 -28
- 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/lib/urbanopt/scenario.rb +16 -6
- data/lib/urbanopt-scenario.rb +16 -6
- data/urbanopt-scenario-gem.gemspec +10 -12
- metadata +13 -83
@@ -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.
|
@@ -37,17 +47,19 @@ module URBANopt
|
|
37
47
|
class ResultVisualization
|
38
48
|
def self.create_visualization(run_dir, feature = true, feature_names = false)
|
39
49
|
@all_results = []
|
40
|
-
|
50
|
+
name = nil
|
41
51
|
run_dir.each do |folder|
|
42
52
|
# create visualization for scenarios
|
43
|
-
|
44
|
-
|
45
|
-
|
53
|
+
case feature
|
54
|
+
when false
|
55
|
+
name = folder.split('/')[-2]
|
56
|
+
csv_dir = folder
|
57
|
+
|
46
58
|
# create visualization for features
|
47
|
-
|
59
|
+
when true
|
48
60
|
index = run_dir.index(folder)
|
49
|
-
name = folder.split('/')[-
|
50
|
-
csv_dir =
|
61
|
+
name = "#{folder.split('/')[-3]}-#{feature_names[index]}"
|
62
|
+
csv_dir = folder
|
51
63
|
end
|
52
64
|
|
53
65
|
if File.exist?(csv_dir)
|
@@ -182,7 +194,6 @@ module URBANopt
|
|
182
194
|
monthly_sum_dec += v.to_f
|
183
195
|
i += 1
|
184
196
|
end
|
185
|
-
|
186
197
|
end
|
187
198
|
end
|
188
199
|
|
@@ -195,42 +206,49 @@ module URBANopt
|
|
195
206
|
annual_values[headers_unitless[j]] = annual_sum
|
196
207
|
end
|
197
208
|
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
209
|
+
results = {}
|
210
|
+
results['name'] = name
|
211
|
+
results['monthly_values'] = {}
|
212
|
+
results['annual_values'] = {}
|
202
213
|
|
203
214
|
if @jan_next_year_index.nil? || @feb_index.nil? || @mar_index.nil? || @apr_index.nil? || @may_index.nil? || @jun_index.nil? || @jul_index.nil? || @aug_index.nil? || @sep_index.nil? || @oct_index.nil? || @nov_index.nil? || @dec_index.nil?
|
204
|
-
|
215
|
+
results['complete_simulation'] = false
|
205
216
|
puts "#{name} did not contain an annual simulation…visualizations will not render for it."
|
206
217
|
else
|
207
|
-
|
218
|
+
results['complete_simulation'] = true
|
208
219
|
end
|
209
220
|
|
210
221
|
monthly_totals&.each do |key, value|
|
211
222
|
unless key == 'Datetime'
|
212
|
-
|
223
|
+
results['monthly_values'][key] = value
|
213
224
|
end
|
214
225
|
end
|
215
226
|
|
216
227
|
annual_values&.each do |key, value|
|
217
228
|
unless key == 'Datetime'
|
218
|
-
|
229
|
+
results['annual_values'][key] = value
|
219
230
|
end
|
220
231
|
end
|
221
232
|
|
222
233
|
end
|
223
234
|
|
224
|
-
unless
|
225
|
-
@all_results <<
|
235
|
+
unless results.nil?
|
236
|
+
@all_results << results
|
226
237
|
end
|
227
238
|
end
|
239
|
+
|
228
240
|
# create json with required data stored in a variable
|
229
|
-
|
241
|
+
if feature == false
|
242
|
+
# In case of scenario visualization store result at top of the run folder
|
243
|
+
results_path = File.expand_path('../../scenarioData.js', run_dir[0])
|
244
|
+
else
|
245
|
+
# In case of feature visualization store result at top of scenario folder folder
|
246
|
+
results_path = File.expand_path('../../../scenarioData.js', run_dir[0])
|
247
|
+
end
|
230
248
|
File.open(results_path, 'w') do |file|
|
231
249
|
file << "var scenarioData = #{JSON.pretty_generate(@all_results)};"
|
232
250
|
end
|
233
251
|
end
|
234
|
-
end
|
235
|
-
end
|
236
|
-
end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
@@ -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.
|
@@ -44,11 +54,7 @@ module URBANopt
|
|
44
54
|
@feature_names = feature_names
|
45
55
|
end
|
46
56
|
|
47
|
-
attr_reader :scenario #:nodoc:
|
48
|
-
|
49
|
-
attr_reader :features #:nodoc:
|
50
|
-
|
51
|
-
attr_reader :feature_names #:nodoc:
|
57
|
+
attr_reader :scenario, :features, :feature_names #:nodoc: #:nodoc: #:nodoc:
|
52
58
|
|
53
59
|
##
|
54
60
|
# Return the directory that this simulation will run in
|
@@ -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.
|
@@ -61,13 +71,15 @@ module URBANopt
|
|
61
71
|
end
|
62
72
|
|
63
73
|
attr_reader :mapper_class, :feature_id
|
74
|
+
|
64
75
|
##
|
65
76
|
# Return the directory that this simulation will run in.
|
66
77
|
##
|
67
78
|
def run_dir
|
68
79
|
raise 'Feature ID not set' if @feature_id.nil?
|
69
80
|
raise 'Scenario run dir not set' if scenario.run_dir.nil?
|
70
|
-
|
81
|
+
|
82
|
+
return File.join(scenario.run_dir, "#{@feature_id}/")
|
71
83
|
end
|
72
84
|
|
73
85
|
##
|
@@ -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.3'.freeze
|
34
44
|
end
|
35
45
|
end
|
data/lib/urbanopt/scenario.rb
CHANGED
@@ -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.
|
data/lib/urbanopt-scenario.rb
CHANGED
@@ -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.
|
@@ -21,27 +21,25 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.bindir = 'exe'
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
|
-
spec.required_ruby_version = '~> 2.
|
24
|
+
spec.required_ruby_version = '~> 2.7.0'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
27
27
|
spec.add_development_dependency 'rake', '~> 13.0'
|
28
28
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
29
29
|
|
30
|
-
spec.add_runtime_dependency 'json-schema', '~> 2.8'
|
31
30
|
spec.add_runtime_dependency 'json_pure', '~> 2.3'
|
31
|
+
spec.add_runtime_dependency 'json-schema', '~> 2.8'
|
32
32
|
|
33
33
|
spec.add_runtime_dependency 'sqlite3', '1.4.2'
|
34
|
-
spec.add_runtime_dependency 'urbanopt-core', '~> 0.
|
35
|
-
spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.
|
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'
|
34
|
+
spec.add_runtime_dependency 'urbanopt-core', '~> 0.6.1'
|
35
|
+
spec.add_runtime_dependency 'urbanopt-reporting', '~> 0.4.2'
|
39
36
|
|
37
|
+
# no longer need the below
|
40
38
|
# need to include all measure gems listed in mappers in project gemfiles
|
41
39
|
# 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
|
+
# 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'
|
47
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.3
|
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: 2021-
|
12
|
+
date: 2021-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -54,33 +54,33 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '3.7'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: json_pure
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '2.
|
62
|
+
version: '2.3'
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '2.
|
69
|
+
version: '2.3'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: json-schema
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '2.
|
76
|
+
version: '2.8'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '2.
|
83
|
+
version: '2.8'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: sqlite3
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,98 +101,28 @@ dependencies:
|
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
104
|
+
version: 0.6.1
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.
|
111
|
+
version: 0.6.1
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: urbanopt-reporting
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
119
|
-
type: :runtime
|
120
|
-
prerelease: false
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
- - "~>"
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 0.3.6
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: openstudio-calibration
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - "~>"
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: 0.3.1
|
133
|
-
type: :runtime
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - "~>"
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: 0.3.1
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: openstudio-common-measures
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - "~>"
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: 0.3.2
|
147
|
-
type: :runtime
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - "~>"
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: 0.3.2
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: openstudio-ee
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - "~>"
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: 0.3.2
|
161
|
-
type: :runtime
|
162
|
-
prerelease: false
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - "~>"
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: 0.3.2
|
168
|
-
- !ruby/object:Gem::Dependency
|
169
|
-
name: openstudio-load-flexibility-measures
|
170
|
-
requirement: !ruby/object:Gem::Requirement
|
171
|
-
requirements:
|
172
|
-
- - "~>"
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: 0.2.1
|
175
|
-
type: :runtime
|
176
|
-
prerelease: false
|
177
|
-
version_requirements: !ruby/object:Gem::Requirement
|
178
|
-
requirements:
|
179
|
-
- - "~>"
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: 0.2.1
|
182
|
-
- !ruby/object:Gem::Dependency
|
183
|
-
name: openstudio-model-articulation
|
184
|
-
requirement: !ruby/object:Gem::Requirement
|
185
|
-
requirements:
|
186
|
-
- - "~>"
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: 0.3.1
|
118
|
+
version: 0.4.2
|
189
119
|
type: :runtime
|
190
120
|
prerelease: false
|
191
121
|
version_requirements: !ruby/object:Gem::Requirement
|
192
122
|
requirements:
|
193
123
|
- - "~>"
|
194
124
|
- !ruby/object:Gem::Version
|
195
|
-
version: 0.
|
125
|
+
version: 0.4.2
|
196
126
|
description: Library to export data point OSW files from URBANopt Scenario CSV
|
197
127
|
email:
|
198
128
|
- rawad.elkontar@nrel.gov
|
@@ -260,7 +190,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
260
190
|
requirements:
|
261
191
|
- - "~>"
|
262
192
|
- !ruby/object:Gem::Version
|
263
|
-
version: 2.
|
193
|
+
version: 2.7.0
|
264
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
195
|
requirements:
|
266
196
|
- - ">="
|