lib/measures/create_baseline_building/measure.rb in openstudio-model-articulation-0.5.0 vs lib/measures/create_baseline_building/measure.rb in openstudio-model-articulation-0.6.0

- old
+ new

@@ -231,11 +231,11 @@ std.model_create_prm_baseline_building(model, building_type, climate_zone, custom, build_dir, debug) end log_msgs(debug) return success - end # end the run method + end # Get all the log messages and put into output # for users to see. def log_msgs(debug) # Log the messages to file for easier review @@ -251,10 +251,11 @@ msg.logChannel.include?('runmanager') || # RunManager messages msg.logChannel.include?('setFileExtension') || # .ddy extension unexpected msg.logChannel.include?('Translator') || # Forward translator and geometry translator msg.logMessage.include?('UseWeatherFile') || # 'UseWeatherFile' is not yet a supported option for YearDescription msg.logMessage.include?('has multiple parents') # Object of type 'OS:Curve:Cubic' and named 'VSD-TWR-FAN-FPLR' has multiple parents. Returning the first. + # Report the message in the correct way if msg.logLevel == OpenStudio::Info @runner.registerInfo(msg.logMessage) elsif msg.logLevel == OpenStudio::Warn @runner.registerWarning(msg.logMessage.to_s) @@ -265,9 +266,9 @@ end end end @runner.registerInfo("Total Time = #{(Time.new - @start_time).round}sec.") end -end # end the measure +end # this allows the measure to be use by the application CreateBaselineBuilding.new.registerWithApplication