You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting multiple redundant lighting schedules created in the stable PRM baseline model, it looks like one per instance of Space in each SpaceType:
I think this is due to the logic in ashrae_90_1_prm.SpaceType space_type_light_sch_change. For each space, the SpaceType lights schedule is retrieved, then the name changed, then it checks whether the new name is in schedule_hash, and if not the schedule is copied and assigned again to the Lights, and the new name added to schedule_hash. Because the name is changed before it's checked, the else branch will run and a new copy will always happen for each space:
The text was updated successfully, but these errors were encountered:
eringold
changed the title
90.1 PRM: New Lights schedule created for each Space in SpaceType
90.1 PRM: Redundant SpaceType Lights schedule created for each Space in SpaceType
Jun 7, 2023
@dmaddoxwhite @lymereJ @weilixu
I'm getting multiple redundant lighting schedules created in the stable PRM baseline model, it looks like one per instance of Space in each SpaceType:

I think this is due to the logic in ashrae_90_1_prm.SpaceType
space_type_light_sch_change
. For each space, the SpaceType lights schedule is retrieved, then the name changed, then it checks whether the new name is inschedule_hash
, and if not the schedule is copied and assigned again to the Lights, and the new name added toschedule_hash
. Because the name is changed before it's checked, theelse
branch will run and a new copy will always happen for each space:openstudio-standards/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.SpaceType.rb
Lines 440 to 468 in 12bbfab
Basically I think
openstudio-standards/lib/openstudio-standards/standards/ashrae_90_1_prm/ashrae_90_1_prm.SpaceType.rb
Line 453 in 12bbfab
should be
The text was updated successfully, but these errors were encountered: