From 9b086b41f02d0ec665d144aa604c3a71f0b1545f Mon Sep 17 00:00:00 2001 From: Christina Gosnell Date: Thu, 26 Sep 2024 16:05:16 -0600 Subject: [PATCH] duhhh if greater than 1 not if greater or equal to 1 (#3869) --- src/pudl/transform/ferc714.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pudl/transform/ferc714.py b/src/pudl/transform/ferc714.py index e59753d2ef..0412184dd3 100644 --- a/src/pudl/transform/ferc714.py +++ b/src/pudl/transform/ferc714.py @@ -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]}" )