Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions rct229/rulesets/ashrae9012019/section19/section19rule13.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ def create_data(self, context, data):
rmd_b = context.BASELINE_0
rmd_p = context.PROPOSED

baseline_system_types_dict_b = get_baseline_system_types(rmd_b)
applicable_hvac_sys_ids = [
hvac_id
for sys_type in baseline_system_types_dict_b
for target_sys_type in APPLICABLE_SYS_TYPES
if baseline_system_type_compare(sys_type, target_sys_type, False)
for hvac_id in baseline_system_types_dict_b[sys_type]
]
dict_of_zones_and_terminal_units_served_by_hvac_sys_b = (
get_dict_of_zones_and_terminal_units_served_by_hvac_sys(rmd_b)
)
Expand All @@ -104,6 +112,8 @@ def create_data(self, context, data):
design_thermostat_cooling_setpoint = []
design_thermostat_heating_setpoint = []
for hvac_id_b in dict_of_zones_and_terminal_units_served_by_hvac_sys_b:
if hvac_id_b not in applicable_hvac_sys_ids:
continue
zone_info[hvac_id_b] = {
"are_all_hvac_sys_fan_objs_autosized": are_all_hvac_sys_fan_objs_autosized(
rmd_b, hvac_id_b
Expand Down Expand Up @@ -217,8 +227,14 @@ def create_data(self, context, data):

return {
"zone_info": zone_info,
"applicable_hvac_sys_ids": applicable_hvac_sys_ids,
}

def list_filter(self, context_item, data):
applicable_hvac_sys_ids = data["applicable_hvac_sys_ids"]

return context_item.BASELINE_0["id"] in applicable_hvac_sys_ids

class HVACRule(RuleDefinitionBase):
def __init__(self):
super(PRM9012019Rule77j17.HVACRule, self).__init__(
Expand Down
Loading