Skip to content

Commit

Permalink
fix freq in test
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne committed Jun 12, 2024
1 parent 7836376 commit 6261ad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archetypal/idfclass/end_use_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ def from_sql_file(
f"freq='{freq}': A reporting frequency other than H is not yet "
f"supported."
)
freq_to_unit = {"H": "hr"}
freq_to_unit = {"h": "hr"}
_hvac_input = _hvac_input.apply(
lambda row: unit_registry.Quantity(
row.values,
unit_registry(power_units) * unit_registry(freq_to_unit[freq]),
unit_registry(power_units) * unit_registry(freq_to_unit[freq.lower()]),
)
.to(units)
.m
Expand Down

0 comments on commit 6261ad3

Please sign in to comment.