lib/openstudio/analysis/translator/workflow.rb in openstudio-analysis-1.0.0.pat1 vs lib/openstudio/analysis/translator/workflow.rb in openstudio-analysis-1.0.0.pat2
- old
+ new
@@ -64,9 +64,10 @@
# Parse the osd hash based off of the osa hash. First check that the analysis id matches
fail "File #{osd_filename} does not reference #{@osa_id}." unless @osa_id == osd[:analysis_id]
# @todo (rhorsey) Fix the spec so this line can be uncommented
osw_steps_instance = @steps
osw_steps_instance.each_with_index do |step, i|
+ next unless @osa[:problem][:workflow][i][:variables]
@osa[:problem][:workflow][i][:variables].each do |var|
var_name = var[:argument][:name]
var_value_uuid = var[:uuid]
var_value = osd[:set_variable_values][var_value_uuid.to_sym]
step[:arguments][var_name.to_sym] = var_value