From ae416030e409b3946bed725ae07680e4ed428f6e Mon Sep 17 00:00:00 2001 From: Anthony Romaniello Date: Mon, 25 Mar 2024 17:15:10 -0400 Subject: [PATCH] Clarify filter_by_parameter debug message --- scos_actions/calibration/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scos_actions/calibration/utils.py b/scos_actions/calibration/utils.py index 8aca940f..e8275dcf 100644 --- a/scos_actions/calibration/utils.py +++ b/scos_actions/calibration/utils.py @@ -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)