Skip to content

Commit

Permalink
duhhh if greater than 1 not if greater or equal to 1 (#3869)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgosnell authored Sep 26, 2024
1 parent b291160 commit 9b086b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pudl/transform/ferc714.py
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ def average_duplicate_pks_csv(df):
& (df["forecast_year"] == 2014)
& (df["net_demand_forecast_mwh"] == 0)
)
if (len_dupes := len(df[error_mask])) >= 1:
if (len_dupes := len(df[error_mask])) > 1:
raise AssertionError(
f"We found {len_dupes} duplicate errors, but expected 1 or less:\n{df[error_mask]}"
)
Expand Down

0 comments on commit 9b086b4

Please sign in to comment.