Skip to content

Commit

Permalink
Bug fix for indices.py function pe
Browse files Browse the repository at this point in the history
  • Loading branch information
tbongiov committed Aug 16, 2023
1 parent 9e5ce06 commit c8bea7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mettoolbox/indices.py
Expand Up @@ -130,9 +130,9 @@ def pe(
target_units=["mm", "mm"],
)

pe_data = tsd["rainfall:mm"] - tsd["pet:mm"]
tsd["pe:mm"] = tsd["rainfall:mm"] - tsd["pet:mm"]

pe_data = tsutils._normalize_units(pe_data, "mm", target_units)
pe_data = tsutils._normalize_units(tsd["pe:mm"], "mm", target_units)

pe_data = (
pe_data.astype(float)
Expand Down

0 comments on commit c8bea7c

Please sign in to comment.