Skip to content

Commit

Permalink
Fix bad var reference
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermorgan committed Mar 22, 2024
1 parent 626c5ff commit b922a5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reView/utils/characterizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ def validate_characterization_remapper( # noqa: C901
parameters are encountered in characterization_remapper.
"""

if any(key not in df.columns for key in characterization_remapper):
keys = [key not in df.columns for key in characterization_remapper]
if any(key not in supply_curve_df.columns
for key in characterization_remapper):
keys = [key not in supply_curve_df.columns
for key in characterization_remapper]
raise KeyError(
"Invalid column name(s) in characterization_remapper. "
"The following column name(s) were not found in the input "
Expand Down

0 comments on commit b922a5d

Please sign in to comment.