openstudio-workflow 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57a7d04300d875244f8d1120a856da6b943188e1
|
4
|
+
data.tar.gz: 22c3421d2b8b1bca3769588f8b1187fb35661f78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 605e3afc830f36366203aa261c37f24025a624afa16cf873c2637830c50890be01c24e951a16de1e7a57101e1fc8b25cc8e4344979aba139ff132d307f0ad02f
|
7
|
+
data.tar.gz: 973a86b651deb00b688613d5726e80ac45f6e3af4f4e0f1d2e2bcd4127bd32f94743389b5057f2acb43c7888404cafc07d3bf57aaf8db422d6bfdaa684b61fb3
|
@@ -54,7 +54,7 @@ class RunReportingMeasures < OpenStudio::Workflow::Job
|
|
54
54
|
if @registry[:model_idf].nil?
|
55
55
|
idf_path = File.absolute_path(File.join(@registry[:run_dir], 'in.idf'))
|
56
56
|
@logger.debug "Attempting to load #{idf_path}"
|
57
|
-
@registry.register(:model_idf) { load_idf(
|
57
|
+
@registry.register(:model_idf) { load_idf(idf_path, @logger) }
|
58
58
|
raise "Unable to load #{idf_path}" unless @registry[:model_idf]
|
59
59
|
@logger.debug "Successfully loaded #{idf_path}"
|
60
60
|
end
|
@@ -28,7 +28,9 @@ module OpenStudio
|
|
28
28
|
fail "The 'steps' array of the OSW is required." unless workflow_steps
|
29
29
|
|
30
30
|
logger.debug "Finding measures of type #{measure_type.valueName}"
|
31
|
-
workflow_steps.
|
31
|
+
workflow_steps.each_index do |step_index|
|
32
|
+
|
33
|
+
step = workflow_steps[step_index]
|
32
34
|
|
33
35
|
if @registry[:openstudio_2]
|
34
36
|
if !step.to_MeasureStep.empty?
|
@@ -55,6 +57,11 @@ module OpenStudio
|
|
55
57
|
else
|
56
58
|
logger.info "Found measure #{class_name} of type #{measure_type.valueName}. Applying now."
|
57
59
|
|
60
|
+
# fast forward current step index to this index, skips any previous steps
|
61
|
+
while workflow_json.currentStepIndex < step_index
|
62
|
+
workflow_json.incrementStep
|
63
|
+
end
|
64
|
+
|
58
65
|
# DLM: why is output_adapter in options instead of registry?
|
59
66
|
options[:output_adapter].communicate_transition("Applying #{class_name}", :measure) if options[:output_adapter]
|
60
67
|
apply_measure(registry, step, options)
|
@@ -43,7 +43,7 @@ module OpenStudio
|
|
43
43
|
# Load the IDF into a workspace object and return it
|
44
44
|
logger.info "Reading in IDF model #{idf_path}"
|
45
45
|
|
46
|
-
idf = OpenStudio::Workspace.load(idf_path)
|
46
|
+
idf = OpenStudio::Workspace.load(idf_path)
|
47
47
|
raise "Failed to load IDF file #{idf_path}" if idf.empty?
|
48
48
|
idf.get
|
49
49
|
end
|
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: 1.1.
|
4
|
+
version: 1.1.4
|
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: 2017-03-
|
12
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|