NREL / openstudio-common-measures-gem

Other
8 stars 15 forks source link

3.1.0 upgrade issues #35

Closed DavidGoldwasser closed 4 years ago

DavidGoldwasser commented 4 years ago

OpenStudio Results already has a few issues, this issue is a catchall for other measures that need updates for 3.1.0. Below is 9.18 run results for openstudio measure -r on local run on mac.

Screen Shot 2020-09-21 at 9 16 10 AM

Failures are on

Errors are on

Details on failures and errors are described below, except for OpenStudioResults which is covered by other existing issues. Fixes will be made to 3_1_0_upgrade. May have to wait until CI is updated to merge to develop, but that might not be necessary.

DavidGoldwasser commented 4 years ago

RadiantSlabWithDoas

ArgumentError: comparison of FalseClass with 20 failed :/ruby/2.5.0/bundler/gems/openstudio-standards-b0cabd8c2fa8/lib/openstudio-standards/prototypes/common/objects/Prototype.hvac_systems.rb:417:in

NoMethodError: undefined method `empty?' for nil:NilClass

DavidGoldwasser commented 4 years ago

ViewData_Test#test_ViewData_LastIDF_Timestep: RuntimeError: Unknown OpenStudio Enum Value '' C:/Users/dgoldwas/Documents/GitHub/NREL/openstudio-common-measures-gem/lib/measures/view_data/measure.rb:212:intranslateWorkspace' C:/Users/dgoldwas/Documents/GitHub/NREL/openstudio-common-measures-gem/lib/measures/view_data/measure.rb:212:in run' C:/Users/dgoldwas/Documents/GitHub/NREL/openstudio-common-measures-gem/lib/measures/view_data/tests/ViewData_Test.rb:311:intest_ViewData_LastIDF_Timestep'`

@jmarrec and @kbenne could be good to test this with next alpha build. If I can isolate this to simple test and confirm the issue I can file an OpenStudio issue.

jmarrec commented 4 years ago

I would pinpoint exactly what's causing this. It seems that it's trying to reverse translate an object, and tries to construct an enum from a text value, except that text is '' (empty). Any OpenStudio enum constructed with an empty string would fail with this message.

eg:

OpenStudio::EndUseFuelType.new('')
RuntimeError: Unknown OpenStudio Enum Value ''

If you can supply me the IDF it's trying to load on that line 212 I can help pinpoint the problem.

DavidGoldwasser commented 4 years ago

@jmarrec I'll send IDF and OSM in Slack. I also filed OpenStudio Issue https://github.com/NREL/OpenStudio/issues/4096

DavidGoldwasser commented 4 years ago

view_data fixed by fix for this OS issue https://github.com/NREL/OpenStudio/issues/4096. I made commit to measure anyway to update test OSM from 1.1.3 to 3.0.1