ladybug-tools / honeybee-openstudio-gem

:honeybee: :gem: Library and measures for translating between Honeybee JSON schema and OpenStudio Model schema (OSM)
Other
6 stars 8 forks source link

There are several OS UseWeatherFile warnings being printed out despite assigning year and weather file #267

Open tanushree04 opened 2 years ago

tanushree04 commented 2 years ago

Warning:

[openstudio.model.YearDescription] <1> 'UseWeatherFile' is selected in YearDescription, but there are no weather file set for the model.

To reproduce:

Running bundle exec rake to execute the rake tasks

Possible fixes from @joseph-robertson:

(1) Where are you setting the calendar year? Here is a snippet for setting it: https://github.com/NREL/resstock/blob/develop/resources/measures/HPXMLtoOpenStudio/resources/location.rb#L65-L68

(2) Above you are setting the weather file on the osw, and not the model. Here is a snippet for setting it: https://github.com/NREL/resstock/blob/develop/resources/measures/HPXMLtoOpenStudio/resources/location.rb#L37-L45

Other ways to isolate the issue:

Running individual tests to see which test leads to the warning