Skip to content

Commit

Permalink
update 5-38 and 19-3
Browse files Browse the repository at this point in the history
  • Loading branch information
weilixu committed Aug 6, 2024
1 parent cea9b48 commit e895dfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 2 additions & 3 deletions rct229/rulesets/ashrae9012019/section19/section19rule3.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_calc_vals(self, context, data=None):
weather_b = rpd_b["weather"]
return {
"cooling_design_day_type": weather_b.get("cooling_design_day_type"),
"heating_design_day_type": weather_b.get("heating_design_day_type")
"heating_design_day_type": weather_b.get("heating_design_day_type"),
}

def applicability_check(self, context, calc_vals, data):
Expand All @@ -39,8 +39,7 @@ def applicability_check(self, context, calc_vals, data):

return (
cooling_design_day_type == COOLING_DESIGN_DAY.COOLING_1_0
and heating_design_day_type
== HEATING_DESIGN_DAY.HEATING_99_6
and heating_design_day_type == HEATING_DESIGN_DAY.HEATING_99_6
)

def get_manual_check_required_msg(self, context, calc_vals=None, data=None):
Expand Down
9 changes: 6 additions & 3 deletions rct229/rulesets/ashrae9012019/section5/section5rule38.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def is_applicable(self, context, data=None):
rpd = context.BASELINE_0
return any(
[
get_opaque_surface_type(surface_b) == OST.BELOW_GRADE_WALL
get_opaque_surface_type(surface_b)
in [OST.BELOW_GRADE_WALL, OST.UNHEATED_SOG, OST.HEATED_SOG]
for surface_b in find_all(
"$.ruleset_model_descriptions[0].buildings[*].building_segments[*].zones["
"*].surfaces[*]",
Expand All @@ -53,5 +54,7 @@ def applicability_check(self, context, calc_vals, data):
return ground_temperature_schedule

def get_manual_check_required_msg(self, context, calc_vals=None, data=None):
ground_temperature_schedule = calc_vals["ground_temperature_schedule"]
return UNDETERMINED_MSG if ground_temperature_schedule else NOT_APPLICABLE_MSG
return UNDETERMINED_MSG

def get_not_applicable_msg(self, context, data=None):
return NOT_APPLICABLE_MSG

0 comments on commit e895dfe

Please sign in to comment.