Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
weilixu committed Jun 21, 2024
1 parent 96519ec commit 15edff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions rct229/rulesets/ashrae9012019/data_fns/table_G3_9_1_fins.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
from rct229.utils.assertions import assert_


class FullLoadMotorEfficiencyForModeling(TypedDict):
class FullLoadMotorEfficiency(TypedDict):
full_load_motor_efficiency_for_modeling: float


def table_G3_9_1_lookup(
shaft_input_power: Quantity,
) -> FullLoadMotorEfficiencyForModeling:
) -> FullLoadMotorEfficiency:
"""Returns the full-load motor efficiency for motors as required by ASHRAE 90.1 Table G3.9.1
Parameters
----------
Expand Down
6 changes: 1 addition & 5 deletions rct229/rulesets/ashrae9012019/data_fns/table_G3_9_3_fins.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import math
from typing import TypedDict

from pint import Quantity
from rct229.rulesets.ashrae9012019.data import data
from rct229.rulesets.ashrae9012019.data_fns.table_G3_9_1_fins import FullLoadMotorEfficiency
from rct229.rulesets.ashrae9012019.data_fns.table_utils import find_osstd_table_entry
from rct229.utils.assertions import assert_


class FullLoadMotorEfficiency(TypedDict):
full_load_motor_efficiency_for_modeling: float


def table_G3_9_3_lookup(shaft_input_power: Quantity) -> FullLoadMotorEfficiency:
"""Returns the full-load motor efficiency for motors as required by ASHRAE 90.1 Table G3.9.2
Parameters
Expand Down

0 comments on commit 15edff0

Please sign in to comment.