Skip to content

Commit

Permalink
Clarify filter_by_parameter debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Mar 25, 2024
1 parent cf1175c commit ae41603
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scos_actions/calibration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def filter_by_parameter(calibrations: dict, value: Union[float, int, bool]) -> d
f"Could not locate calibration data at {value}"
+ f"\nAttempted lookup using key '{str(value).lower()}'"
+ f"{f' and {float(value)}' if isinstance(value, float) and value.is_integer() else ''}"
+ f"{f' and {int(value)}' if isinstance(value, float) and value.is_integer() else ''}"
+ f"\nUsing calibration data: {calibrations}"
)
raise CalibrationEntryMissingException(msg)

0 comments on commit ae41603

Please sign in to comment.