openstudio-workflow 2.0.0.pre1 → 2.2.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 +21 -3
- data/README.md +1 -1
- data/Rakefile +11 -0
- data/lib/openstudio-workflow.rb +1 -1
- data/lib/openstudio/workflow/adapters/input/local.rb +1 -1
- data/lib/openstudio/workflow/adapters/output/local.rb +1 -1
- data/lib/openstudio/workflow/adapters/output/socket.rb +1 -1
- data/lib/openstudio/workflow/adapters/output/web.rb +1 -1
- data/lib/openstudio/workflow/adapters/output_adapter.rb +1 -1
- data/lib/openstudio/workflow/job.rb +1 -1
- data/lib/openstudio/workflow/jobs/resources/monthly_report.idf +15 -13
- data/lib/openstudio/workflow/jobs/run_energyplus.rb +1 -1
- data/lib/openstudio/workflow/jobs/run_ep_measures.rb +1 -1
- data/lib/openstudio/workflow/jobs/run_initialization.rb +1 -1
- data/lib/openstudio/workflow/jobs/run_os_measures.rb +1 -1
- data/lib/openstudio/workflow/jobs/run_postprocess.rb +1 -1
- data/lib/openstudio/workflow/jobs/run_preprocess.rb +1 -1
- data/lib/openstudio/workflow/jobs/run_reporting_measures.rb +16 -2
- data/lib/openstudio/workflow/jobs/run_translation.rb +1 -1
- data/lib/openstudio/workflow/multi_delegator.rb +1 -1
- data/lib/openstudio/workflow/registry.rb +1 -1
- data/lib/openstudio/workflow/run.rb +1 -1
- data/lib/openstudio/workflow/time_logger.rb +1 -1
- data/lib/openstudio/workflow/util.rb +1 -1
- data/lib/openstudio/workflow/util/energyplus.rb +17 -17
- data/lib/openstudio/workflow/util/io.rb +1 -1
- data/lib/openstudio/workflow/util/measure.rb +6 -1
- data/lib/openstudio/workflow/util/model.rb +1 -1
- data/lib/openstudio/workflow/util/post_process.rb +1 -1
- data/lib/openstudio/workflow/util/weather_file.rb +1 -1
- data/lib/openstudio/workflow/version.rb +2 -2
- data/lib/openstudio/workflow_json.rb +1 -1
- data/lib/openstudio/workflow_runner.rb +1 -1
- metadata +55 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d01f7cb6363d0859380d1052b968b81abcce6d547374045ea311e51118f2493
|
4
|
+
data.tar.gz: e3cde5096a65771a86c4bfb04d190704c2b9a034be3cbad8f5e664d693126a52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aca10e06acecf1f2b0f9875c44b165da9a5165b514fcf76802d16bb86c321338a57bd359f481df6ce8c451ab1a313fd71dc55433be09e063e4e600d9f7753d66
|
7
|
+
data.tar.gz: 202cafbb5c9e04d45e840bdb0938533312a57b4e0c50b3be0ee0d563c16c54d478de54eec72f5eedea270a48ba7d4ce54593191fc9b2ca3e89230c001f53e96f
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,33 @@
|
|
1
1
|
OpenStudio::Workflow Change Log
|
2
2
|
==================================
|
3
3
|
|
4
|
-
Version 2.
|
5
|
-
|
4
|
+
Version 2.2.0
|
5
|
+
-------------
|
6
|
+
* Minimum Ruby version upgraded to 2.7.0
|
7
|
+
* Bundler bumped to ~> 2.2
|
8
|
+
* Updated copyright
|
9
|
+
|
10
|
+
Version 2.1.1
|
11
|
+
-------------
|
12
|
+
* Add support for URBANopt Workflow
|
13
|
+
* Update reporting measure in tests
|
14
|
+
|
15
|
+
Version 2.1.0
|
16
|
+
-------------
|
17
|
+
* Support for EnergyPlus 9.4. This version will not work with prior versions of EnergyPlus.
|
18
|
+
* Add warning when paths are not relative
|
6
19
|
|
20
|
+
Version 2.0.1
|
21
|
+
-------------
|
22
|
+
* Bug fix for idf.addObjects(object) to idf.addObject(object)
|
23
|
+
|
24
|
+
Version 2.0.0
|
25
|
+
-------------
|
7
26
|
* Support Ruby > 2.5
|
8
27
|
* Support OpenStudio 3.x
|
9
28
|
|
10
29
|
Version 1.3.5
|
11
30
|
-------------
|
12
|
-
|
13
31
|
* Allow reporting to fail gracefully so HTML reports are returned Fixed [this](https://github.com/NREL/OpenStudio/issues/864).
|
14
32
|
* Allow EMS:OutputVariable in reporting measure
|
15
33
|
* Fixes [#93](https://github.com/NREL/OpenStudio-workflow-gem/issues/93) - Pass Model to the arguments method of ReportingMeasure
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ This branch is the development branch for the OpenStudio workflow gem.
|
|
9
9
|
|
10
10
|
The OpenStudio Workflow Gem has the following dependencies:
|
11
11
|
|
12
|
-
* Ruby 2.
|
12
|
+
* Ruby 2.7.2
|
13
13
|
* OpenStudio 3.x
|
14
14
|
|
15
15
|
[OpenStudio](https://www.openstudio.net/) needs to be installed and in your path. On Mac/Linux it is easiest to add the following to your .bash_profile or /etc/profile.d/<file>.sh to ensure OpenStudio loads. Assuming OpenStudio 3.0.0 installed:
|
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
|
data/lib/openstudio-workflow.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -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,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -63,8 +63,22 @@ class RunReportingMeasures < OpenStudio::Workflow::Job
|
|
63
63
|
# Ensure output_attributes is initialized in the registry
|
64
64
|
@registry.register(:output_attributes) { {} } unless @registry[:output_attributes]
|
65
65
|
|
66
|
+
# get OSA[:urbanopt] #BLB should prob be sent in as cli arg and used in options but for now just do this
|
67
|
+
@registry.register(:urbanopt) { false }
|
68
|
+
if @registry[:osw_path]
|
69
|
+
workflow = nil
|
70
|
+
if File.exist? @registry[:osw_path]
|
71
|
+
workflow = ::JSON.parse(File.read(@registry[:osw_path]), symbolize_names: true)
|
72
|
+
if !workflow.nil?
|
73
|
+
if !workflow[:urbanopt].nil?
|
74
|
+
@registry.register(:urbanopt) { workflow[:urbanopt] }
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
66
80
|
# Load simulation files as required
|
67
|
-
unless @registry[:runner].halted
|
81
|
+
unless @registry[:runner].halted || @registry[:urbanopt]
|
68
82
|
if @registry[:model].nil?
|
69
83
|
osm_path = File.absolute_path(File.join(@registry[:run_dir], 'in.osm'))
|
70
84
|
@logger.debug "Attempting to load #{osm_path}"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -227,7 +227,7 @@ module OpenStudio
|
|
227
227
|
# just add this, we don't allow this type in add_energyplus_output_request
|
228
228
|
logger.info 'Adding SQL Output to IDF'
|
229
229
|
object = OpenStudio::IdfObject.load('Output:SQLite,SimpleAndTabular;').get
|
230
|
-
idf.
|
230
|
+
idf.addObject(object)
|
231
231
|
end
|
232
232
|
|
233
233
|
# merge in monthly reports
|
@@ -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,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# *******************************************************************************
|
2
|
-
# OpenStudio(R), Copyright (c) 2008-
|
2
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
3
3
|
# All rights reserved.
|
4
4
|
# Redistribution and use in source and binary forms, with or without
|
5
5
|
# modification, are permitted provided that the following conditions are met:
|
@@ -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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -37,6 +37,6 @@
|
|
37
37
|
|
38
38
|
module OpenStudio
|
39
39
|
module Workflow
|
40
|
-
VERSION = '2.
|
40
|
+
VERSION = '2.2.0'.freeze # Suffixes must have periods (not dashes)
|
41
41
|
end
|
42
42
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# *******************************************************************************
|
4
|
-
# OpenStudio(R), Copyright (c) 2008-
|
4
|
+
# OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC.
|
5
5
|
# All rights reserved.
|
6
6
|
# Redistribution and use in source and binary forms, with or without
|
7
7
|
# modification, are permitted provided that the following conditions are met:
|
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.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Long
|
@@ -9,176 +9,190 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: builder
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 3.2.4
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 3.2.4
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name:
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 2.1.0
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 2.1.0
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: ci_reporter
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
31
45
|
requirements:
|
32
46
|
- - "~>"
|
33
47
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
48
|
+
version: 2.0.0
|
35
49
|
type: :development
|
36
50
|
prerelease: false
|
37
51
|
version_requirements: !ruby/object:Gem::Requirement
|
38
52
|
requirements:
|
39
53
|
- - "~>"
|
40
54
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
55
|
+
version: 2.0.0
|
42
56
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
57
|
+
name: ci_reporter_rspec
|
44
58
|
requirement: !ruby/object:Gem::Requirement
|
45
59
|
requirements:
|
46
60
|
- - "~>"
|
47
61
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
62
|
+
version: 1.0.0
|
49
63
|
type: :development
|
50
64
|
prerelease: false
|
51
65
|
version_requirements: !ruby/object:Gem::Requirement
|
52
66
|
requirements:
|
53
67
|
- - "~>"
|
54
68
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
69
|
+
version: 1.0.0
|
56
70
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
71
|
+
name: coveralls
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
59
73
|
requirements:
|
60
74
|
- - "~>"
|
61
75
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
76
|
+
version: 0.8.21
|
63
77
|
type: :development
|
64
78
|
prerelease: false
|
65
79
|
version_requirements: !ruby/object:Gem::Requirement
|
66
80
|
requirements:
|
67
81
|
- - "~>"
|
68
82
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
83
|
+
version: 0.8.21
|
70
84
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
85
|
+
name: json-schema
|
72
86
|
requirement: !ruby/object:Gem::Requirement
|
73
87
|
requirements:
|
74
88
|
- - "~>"
|
75
89
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
90
|
+
version: 2.8.0
|
77
91
|
type: :development
|
78
92
|
prerelease: false
|
79
93
|
version_requirements: !ruby/object:Gem::Requirement
|
80
94
|
requirements:
|
81
95
|
- - "~>"
|
82
96
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
97
|
+
version: 2.8.0
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
99
|
+
name: openstudio-standards
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
87
101
|
requirements:
|
88
102
|
- - "~>"
|
89
103
|
- !ruby/object:Gem::Version
|
90
|
-
version: 2.
|
104
|
+
version: 0.2.12
|
91
105
|
type: :development
|
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: 2.
|
111
|
+
version: 0.2.12
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
113
|
+
name: parallel
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
101
115
|
requirements:
|
102
116
|
- - "~>"
|
103
117
|
- !ruby/object:Gem::Version
|
104
|
-
version: 1.
|
118
|
+
version: 1.19.1
|
105
119
|
type: :development
|
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: 1.
|
125
|
+
version: 1.19.1
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
127
|
+
name: public_suffix
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
115
129
|
requirements:
|
116
130
|
- - "~>"
|
117
131
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
132
|
+
version: 4.0.3
|
119
133
|
type: :development
|
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.
|
139
|
+
version: 4.0.3
|
126
140
|
- !ruby/object:Gem::Dependency
|
127
|
-
name:
|
141
|
+
name: rainbow
|
128
142
|
requirement: !ruby/object:Gem::Requirement
|
129
143
|
requirements:
|
130
144
|
- - "~>"
|
131
145
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
146
|
+
version: 3.0.0
|
133
147
|
type: :development
|
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:
|
153
|
+
version: 3.0.0
|
140
154
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
155
|
+
name: rake
|
142
156
|
requirement: !ruby/object:Gem::Requirement
|
143
157
|
requirements:
|
144
158
|
- - "~>"
|
145
159
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
160
|
+
version: '12.3'
|
147
161
|
type: :development
|
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:
|
167
|
+
version: '12.3'
|
154
168
|
- !ruby/object:Gem::Dependency
|
155
|
-
name:
|
169
|
+
name: rspec
|
156
170
|
requirement: !ruby/object:Gem::Requirement
|
157
171
|
requirements:
|
158
172
|
- - "~>"
|
159
173
|
- !ruby/object:Gem::Version
|
160
|
-
version: 3.
|
174
|
+
version: '3.9'
|
161
175
|
type: :development
|
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: 3.
|
181
|
+
version: '3.9'
|
168
182
|
- !ruby/object:Gem::Dependency
|
169
183
|
name: rubocop
|
170
184
|
requirement: !ruby/object:Gem::Requirement
|
171
185
|
requirements:
|
172
186
|
- - "~>"
|
173
187
|
- !ruby/object:Gem::Version
|
174
|
-
version: 0.
|
188
|
+
version: 0.54.0
|
175
189
|
type: :development
|
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.
|
195
|
+
version: 0.54.0
|
182
196
|
- !ruby/object:Gem::Dependency
|
183
197
|
name: rubocop-checkstyle_formatter
|
184
198
|
requirement: !ruby/object:Gem::Requirement
|
@@ -246,15 +260,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
246
260
|
requirements:
|
247
261
|
- - "~>"
|
248
262
|
- !ruby/object:Gem::Version
|
249
|
-
version: 2.
|
263
|
+
version: 2.7.0
|
250
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
265
|
requirements:
|
252
|
-
- - "
|
266
|
+
- - ">="
|
253
267
|
- !ruby/object:Gem::Version
|
254
|
-
version:
|
268
|
+
version: '0'
|
255
269
|
requirements: []
|
256
|
-
|
257
|
-
rubygems_version: 2.7.6.2
|
270
|
+
rubygems_version: 3.1.4
|
258
271
|
signing_key:
|
259
272
|
specification_version: 4
|
260
273
|
summary: OpenStudio Workflow Manager
|