Skip to content

Commit

Permalink
adjust sensitivity check
Browse files Browse the repository at this point in the history
  • Loading branch information
carueda committed Aug 16, 2024
1 parent 14727b6 commit 76a7d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pbp/simpleapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def check_parameters(self) -> str | None:

if not self._sensitivity:
errors.append("- sensitivity not set.")
elif not isinstance(self._sensitivity, (float, str)):
errors.append("- sensitivity must be a float or a string")
elif not isinstance(self._sensitivity, (float, int, str)):
errors.append("- sensitivity must be a number or a string")

if not isinstance(self._subset_to, tuple):
errors.append("- subset_to must be a tuple")
Expand Down

0 comments on commit 76a7d65

Please sign in to comment.