lib/openstudio/analysis/translator/datapoints.rb in openstudio-analysis-1.0.0.rc8 vs lib/openstudio/analysis/translator/datapoints.rb in openstudio-analysis-1.0.0.rc9

- old
+ new

@@ -267,15 +267,15 @@ end @models << { name: model_name.to_underscore, display_name: model_name, type: type, path: path } end # Assign optional attributes - if config_hash[:output] - path = File.expand_path(File.join(@root_path, config_hash[:output].to_s)) + if config_hash[:output_json] + path = File.expand_path(File.join(@root_path, config_hash[:output_json].to_s)) if File.exist? path @outputs = MultiJson.load(File.read(path)) else - fail "Could not find output json: #{config_hash[:output]}" + fail "Could not find output json: #{config_hash[:output_json]}" end end if config_hash[:export_path] if (Pathname.new config_hash[:export_path]).absolute?