Skip to content

Commit

Permalink
Fix abs error in methods
Browse files Browse the repository at this point in the history
  • Loading branch information
neilgrant committed Jan 27, 2025
1 parent 91e45a9 commit 7ba40b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aneris/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def default_method_choice(
# dH small?
# Defined at the relative difference is less than 50% of historical data
# or under the absolute threshold
if (row.dH.abs() < 0.5) or (row.dH_abs < row.dH_abs_thresh):
if (abs(row.dH) < 0.5) or (row.dH_abs < row.dH_abs_thresh):
if row.dH < 0:
# If dH is negative (model data > historical data)
# Then we can use the ratio method
Expand Down

0 comments on commit 7ba40b9

Please sign in to comment.