openstudio-workflow 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Rakefile +11 -0
- data/lib/openstudio/workflow/jobs/resources/monthly_report.idf +15 -13
- data/lib/openstudio/workflow/util/energyplus.rb +15 -15
- data/lib/openstudio/workflow/util/measure.rb +5 -0
- data/lib/openstudio/workflow/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c672be50cec3b97e0768c9b4b935283c281a42a8668d172777d77fc11f7bb636
|
4
|
+
data.tar.gz: 110cd910db5fd25e70c641dbbe905ee18b065dcfdf0447c50847867a5bd8a9db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37cef44df01e125a9c6e0cb496c3d68accdca96dc97106d23fac41b8e63551efdc2b9deb57cb9ffa78a9ba246bf1e0837b1a897bbf08102d95d2329c078638fa
|
7
|
+
data.tar.gz: 31cd4fc83927dbef85d38ff169578888e23b928f0ab54039ac1b4cf04e2d8058849a23afa91b76443080ad98cf80c9675007a1ccb627cc69110d0e598fca3fc1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
OpenStudio::Workflow Change Log
|
2
2
|
==================================
|
3
3
|
|
4
|
+
Version 2.1.0
|
5
|
+
-------------
|
6
|
+
* Support for EnergyPlus 9.4. This version will not work with prior versions of EnergyPlus.
|
7
|
+
* Add warning when paths are not relative
|
8
|
+
|
4
9
|
Version 2.0.1
|
5
10
|
-------------
|
6
11
|
|
data/Rakefile
CHANGED
@@ -36,3 +36,14 @@ task :test_zip do
|
|
36
36
|
puts "Trying to extract #{f}"
|
37
37
|
OpenStudio::Workflow.extract_archive(f, 'junk_out', true)
|
38
38
|
end
|
39
|
+
|
40
|
+
desc 'Transition IDF Files'
|
41
|
+
task :transition_idf do
|
42
|
+
lst_path = File.join(Dir.pwd, 'IdfFilesToTransition.lst')
|
43
|
+
File.open(lst_path, 'w') do |file|
|
44
|
+
Dir.glob('**/*.idf').each do |idf|
|
45
|
+
file.puts(File.join(Dir.pwd, idf))
|
46
|
+
end
|
47
|
+
end
|
48
|
+
puts "Use the IDFVersionUpdater and point it to #{lst_path}"
|
49
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
Version,9.4;
|
2
|
+
|
1
3
|
Output:Table:Monthly,
|
2
4
|
Building Energy Performance - Electricity, !- Name
|
3
5
|
2, !- Digits After Decimal
|
@@ -33,17 +35,17 @@ Output:Table:Monthly,
|
|
33
35
|
Output:Table:Monthly,
|
34
36
|
Building Energy Performance - Natural Gas, !- Name
|
35
37
|
2, !- Digits After Decimal
|
36
|
-
InteriorEquipment:
|
38
|
+
InteriorEquipment:NaturalGas, !- Variable or Meter 1 Name
|
37
39
|
SumOrAverage, !- Aggregation Type for Variable or Meter 1
|
38
|
-
ExteriorEquipment:
|
40
|
+
ExteriorEquipment:NaturalGas, !- Variable or Meter 2 Name
|
39
41
|
SumOrAverage, !- Aggregation Type for Variable or Meter 2
|
40
|
-
Heating:
|
42
|
+
Heating:NaturalGas, !- Variable or Meter 3 Name
|
41
43
|
SumOrAverage, !- Aggregation Type for Variable or Meter 3
|
42
|
-
Cooling:
|
44
|
+
Cooling:NaturalGas, !- Variable or Meter 4 Name
|
43
45
|
SumOrAverage, !- Aggregation Type for Variable or Meter 4
|
44
|
-
WaterSystems:
|
46
|
+
WaterSystems:NaturalGas, !- Variable or Meter 5 Name
|
45
47
|
SumOrAverage, !- Aggregation Type for Variable or Meter 5
|
46
|
-
Cogeneration:
|
48
|
+
Cogeneration:NaturalGas, !- Variable or Meter 6 Name
|
47
49
|
SumOrAverage; !- Aggregation Type for Variable or Meter 6
|
48
50
|
|
49
51
|
Output:Table:Monthly,
|
@@ -141,19 +143,19 @@ Output:Table:Monthly,
|
|
141
143
|
Output:Table:Monthly,
|
142
144
|
Building Energy Performance - Natural Gas Peak Demand, !- Name
|
143
145
|
2, !- Digits After Decimal
|
144
|
-
|
146
|
+
NaturalGas:Facility, !- Variable or Meter 1 Name
|
145
147
|
Maximum, !- Aggregation Type for Variable or Meter 1
|
146
|
-
InteriorEquipment:
|
148
|
+
InteriorEquipment:NaturalGas, !- Variable or Meter 1 Name
|
147
149
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
|
148
|
-
ExteriorEquipment:
|
150
|
+
ExteriorEquipment:NaturalGas, !- Variable or Meter 2 Name
|
149
151
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
|
150
|
-
Heating:
|
152
|
+
Heating:NaturalGas, !- Variable or Meter 3 Name
|
151
153
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
|
152
|
-
Cooling:
|
154
|
+
Cooling:NaturalGas, !- Variable or Meter 4 Name
|
153
155
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
|
154
|
-
WaterSystems:
|
156
|
+
WaterSystems:NaturalGas, !- Variable or Meter 5 Name
|
155
157
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
|
156
|
-
Cogeneration:
|
158
|
+
Cogeneration:NaturalGas, !- Variable or Meter 6 Name
|
157
159
|
ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 6
|
158
160
|
|
159
161
|
Output:Table:Monthly,
|
@@ -239,13 +239,13 @@ module OpenStudio
|
|
239
239
|
end
|
240
240
|
|
241
241
|
# These are needed for the calibration report
|
242
|
-
new_objects << 'Output:Meter:MeterFileOnly,
|
242
|
+
new_objects << 'Output:Meter:MeterFileOnly,NaturalGas:Facility,Daily;'
|
243
243
|
new_objects << 'Output:Meter:MeterFileOnly,Electricity:Facility,Timestep;'
|
244
244
|
new_objects << 'Output:Meter:MeterFileOnly,Electricity:Facility,Daily;'
|
245
245
|
|
246
246
|
# Always add in the timestep facility meters
|
247
247
|
new_objects << 'Output:Meter,Electricity:Facility,Timestep;'
|
248
|
-
new_objects << 'Output:Meter,
|
248
|
+
new_objects << 'Output:Meter,NaturalGas:Facility,Timestep;'
|
249
249
|
new_objects << 'Output:Meter,DistrictCooling:Facility,Timestep;'
|
250
250
|
new_objects << 'Output:Meter,DistrictHeating:Facility,Timestep;'
|
251
251
|
|
@@ -384,17 +384,17 @@ module OpenStudio
|
|
384
384
|
Output:Table:Monthly,
|
385
385
|
Building Energy Performance - Natural Gas, !- Name
|
386
386
|
2, !- Digits After Decimal
|
387
|
-
InteriorEquipment:
|
387
|
+
InteriorEquipment:NaturalGas, !- Variable or Meter 1 Name
|
388
388
|
SumOrAverage, !- Aggregation Type for Variable or Meter 1
|
389
|
-
ExteriorEquipment:
|
389
|
+
ExteriorEquipment:NaturalGas, !- Variable or Meter 2 Name
|
390
390
|
SumOrAverage, !- Aggregation Type for Variable or Meter 2
|
391
|
-
Heating:
|
391
|
+
Heating:NaturalGas, !- Variable or Meter 3 Name
|
392
392
|
SumOrAverage, !- Aggregation Type for Variable or Meter 3
|
393
|
-
Cooling:
|
393
|
+
Cooling:NaturalGas, !- Variable or Meter 4 Name
|
394
394
|
SumOrAverage, !- Aggregation Type for Variable or Meter 4
|
395
|
-
WaterSystems:
|
395
|
+
WaterSystems:NaturalGas, !- Variable or Meter 5 Name
|
396
396
|
SumOrAverage, !- Aggregation Type for Variable or Meter 5
|
397
|
-
Cogeneration:
|
397
|
+
Cogeneration:NaturalGas, !- Variable or Meter 6 Name
|
398
398
|
SumOrAverage; !- Aggregation Type for Variable or Meter 6
|
399
399
|
|
400
400
|
Output:Table:Monthly,
|
@@ -492,19 +492,19 @@ module OpenStudio
|
|
492
492
|
Output:Table:Monthly,
|
493
493
|
Building Energy Performance - Natural Gas Peak Demand, !- Name
|
494
494
|
2, !- Digits After Decimal
|
495
|
-
|
495
|
+
NaturalGas:Facility, !- Variable or Meter 1 Name
|
496
496
|
Maximum, !- Aggregation Type for Variable or Meter 1
|
497
|
-
InteriorEquipment:
|
497
|
+
InteriorEquipment:NaturalGas, !- Variable or Meter 1 Name
|
498
498
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 1
|
499
|
-
ExteriorEquipment:
|
499
|
+
ExteriorEquipment:NaturalGas, !- Variable or Meter 2 Name
|
500
500
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 2
|
501
|
-
Heating:
|
501
|
+
Heating:NaturalGas, !- Variable or Meter 3 Name
|
502
502
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 3
|
503
|
-
Cooling:
|
503
|
+
Cooling:NaturalGas, !- Variable or Meter 4 Name
|
504
504
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 4
|
505
|
-
WaterSystems:
|
505
|
+
WaterSystems:NaturalGas, !- Variable or Meter 5 Name
|
506
506
|
ValueWhenMaximumOrMinimum, !- Aggregation Type for Variable or Meter 5
|
507
|
-
Cogeneration:
|
507
|
+
Cogeneration:NaturalGas, !- Variable or Meter 6 Name
|
508
508
|
ValueWhenMaximumOrMinimum; !- Aggregation Type for Variable or Meter 6
|
509
509
|
|
510
510
|
Output:Table:Monthly,
|
@@ -76,6 +76,11 @@ module OpenStudio
|
|
76
76
|
|
77
77
|
measure_dir_name = step.measureDirName
|
78
78
|
|
79
|
+
pn = Pathname.new(measure_dir_name)
|
80
|
+
if pn.absolute?
|
81
|
+
logger.warn "measure_dir_name should not be a full path. It should be a relative path to the measure directory or the name of the measure directory containing the measure.rb file."
|
82
|
+
end
|
83
|
+
|
79
84
|
measure_dir = workflow_json.findMeasure(measure_dir_name)
|
80
85
|
fail "Cannot find #{measure_dir_name}" if measure_dir.empty?
|
81
86
|
measure_dir = measure_dir.get
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstudio-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Long
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
@@ -124,33 +124,33 @@ dependencies:
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: 4.0.3
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
127
|
+
name: rainbow
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 3.0.0
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
139
|
+
version: 3.0.0
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
141
|
+
name: rake
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - "~>"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 3
|
146
|
+
version: '12.3'
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
151
|
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version: 3
|
153
|
+
version: '12.3'
|
154
154
|
- !ruby/object:Gem::Dependency
|
155
155
|
name: rspec
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|