From cf1175c08782f6e80336f700ac611b4e66f65280 Mon Sep 17 00:00:00 2001 From: Anthony Romaniello Date: Mon, 25 Mar 2024 17:11:42 -0400 Subject: [PATCH] update docstring --- scos_actions/calibration/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scos_actions/calibration/utils.py b/scos_actions/calibration/utils.py index fa977653..8aca940f 100644 --- a/scos_actions/calibration/utils.py +++ b/scos_actions/calibration/utils.py @@ -39,7 +39,8 @@ def filter_by_parameter(calibrations: dict, value: Union[float, int, bool]) -> d If ``value`` is a float or bool, ``str(value).lower()`` is used as the dictionary key. If ``value`` is an int, and the previous approach does not work, ``str(float(value))`` is attempted. This - allows for value ``1`` to match a key ``"1.0"``. + allows for value ``1`` to match a key ``"1.0"``, or a value of + ``1.0`` to match a key ``"1"``. :param calibrations: Calibration data dictionary. :param value: The parameter value for filtering. This value should