openstudio-workflow 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89e53c78fca885e3dfa70230cfcb844f46df7511
4
- data.tar.gz: 84085fc7b3e3c8353e4854c81e981d0906b2c033
3
+ metadata.gz: 57a7d04300d875244f8d1120a856da6b943188e1
4
+ data.tar.gz: 22c3421d2b8b1bca3769588f8b1187fb35661f78
5
5
  SHA512:
6
- metadata.gz: 235db73cd5e588fb0c9ee452b2a404cc40a9a42f472363f73b899afc5962c039b25e5f5d7325b0b24de13be6cc11f29da572090f319165dda03688206a13b519
7
- data.tar.gz: 743d79020fd58e99ea602778575fa91abec7e443b25175ad7b7acfed8af3dcb54f6c4ed5b7717bd8d8562012f9879711e682bc3eb2f24326313d108937760cef
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('.', idf_path) }
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.each do |step|
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).get
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
@@ -19,6 +19,6 @@
19
19
 
20
20
  module OpenStudio
21
21
  module Workflow
22
- VERSION = '1.1.3'.freeze # Suffixes must have periods (not dashes)
22
+ VERSION = '1.1.4'.freeze # Suffixes must have periods (not dashes)
23
23
  end
24
24
  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.3
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-09 00:00:00.000000000 Z
12
+ date: 2017-03-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler