lib/measures/from_honeybee_model/measure.rb in honeybee-openstudio-2.6.9 vs lib/measures/from_honeybee_model/measure.rb in honeybee-openstudio-2.7.0

- old
+ new

@@ -1,9 +1,9 @@ # ******************************************************************************* -# Honeybee OpenStudio Gem, Copyright (c) 2020, Alliance for Sustainable +# Honeybee OpenStudio Gem, Copyright (c) 2020, Alliance for Sustainable # Energy, LLC, Ladybug Tools LLC and other contributors. All rights reserved. -# +# # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # (1) Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. @@ -30,11 +30,11 @@ # ******************************************************************************* # see the URL below for information on how to write OpenStudio measures # http://nrel.github.io/OpenStudio-user-documentation/reference/measure_writing_guide/ -require 'from_honeybee/model' +require 'to_openstudio' # start the measure class FromHoneybeeModel < OpenStudio::Measure::ModelMeasure # human readable name def name @@ -76,10 +76,10 @@ if !File.exist?(model_json) runner.registerError("Cannot find file '#{model_json}'") return false end - honeybee_model = FromHoneybee::Model.read_from_disk(model_json) + honeybee_model = Honeybee::Model.read_from_disk(model_json) STDOUT.flush honeybee_model.to_openstudio_model(model) STDOUT.flush return true