NREL / openstudio-common-measures-gem

Other
7 stars 15 forks source link

openstudio_results Zone Equipment Detail section fails with ZoneHVACLowTempRadiantVarFlow #122

Open eringold opened 1 year ago

eringold commented 1 year ago

OpenStudio 3.2.0 made the OpenStudio::Model::ZoneHVACLowTempRadiantVarFlow methods coolingCoil and heatingCoil return optional HVACComponents.

The openstudio_results resource file Siz.ZoneHVACLowTempRadiantVarFlow.rb calls those methods without checking if the coils are initialized, leading to an undefined method error: https://github.com/NREL/openstudio-common-measures-gem/blob/33e93718c5895f00d806cc4c97d064fd52d03246/lib/measures/openstudio_results/resources/Siz.ZoneHVACLowTempRadiantVarFlow.rb#L39

Resource file needs updating (maybe with a version check?) to properly handle the optional return types for those methods.