Skip to content

Commit

Permalink
fix issue with energy pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelduchesne committed Jun 12, 2024
1 parent 51bd426 commit 7836376
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion archetypal/idfclass/end_use_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ def from_sql_file(
).to_units(units)
# convert power to energy assuming the reporting frequency
freq = pd.infer_freq(_hvac_input.index)
assert freq == "H", "A reporting frequency other than H is not yet supported."
assert freq.lower() == "h", (
f"freq='{freq}': A reporting frequency other than H is not yet "
f"supported."
)
freq_to_unit = {"H": "hr"}
_hvac_input = _hvac_input.apply(
lambda row: unit_registry.Quantity(
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ deprecation = "^2.1.0"
sigfig = "^1.3.3"
requests = "^2.32.3"
coolprop = "^6.6.0"
energy-pandas = ">=0.3.4"
energy-pandas = ">=0.3.5"
validator-collection = "^1.5.0"
pint = "<=0.19"
typing-extensions = "^4.12.2"
Expand Down

0 comments on commit 7836376

Please sign in to comment.