Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Mar 25, 2024
1 parent 5c528ea commit cf1175c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scos_actions/calibration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf1175c

Please sign in to comment.