lib/measures/create_baseline_building/measure.rb in openstudio-model-articulation-0.2.0 vs lib/measures/create_baseline_building/measure.rb in openstudio-model-articulation-0.2.1
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# *******************************************************************************
# OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC.
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -241,10 +243,10 @@
log_file_path = "#{Dir.pwd}/#{log_name}"
messages = log_messages_to_file(log_file_path, debug)
@runner.registerFinalCondition("Messages below saved to <a href='file:///#{log_file_path}'>#{log_name}</a>.")
@msg_log.logMessages.each do |msg|
# DLM: you can filter on log channel here for now
- if /openstudio.*/.match(msg.logChannel) # /openstudio\.model\..*/
+ if /openstudio.*/.match?(msg.logChannel) # /openstudio\.model\..*/
# Skip certain messages that are irrelevant/misleading
next if msg.logMessage.include?('Skipping layer') || # Annoying/bogus "Skipping layer" warnings
msg.logChannel.include?('runmanager') || # RunManager messages
msg.logChannel.include?('setFileExtension') || # .ddy extension unexpected
msg.logChannel.include?('Translator') || # Forward translator and geometry translator