Skip to content

Commit

Permalink
Fix unittests for numpy>1
Browse files Browse the repository at this point in the history
An assertion in verif.input.Comps failed
  • Loading branch information
tnipen committed Dec 27, 2024
1 parent 8aa2ea3 commit c5f1227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verif/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def _comps_to_verif_threshold(variable_name):
variable_name = variable_name.replace("m", "-")
variable_name = variable_name.replace("p0", "0.")
variable_name = variable_name.replace("p", "")
assert(len(np.where(variable_name == ".")) < 2)
assert variable_name.count(".") < 2
if verif.util.is_number(variable_name):
threshold = float(variable_name)
return threshold
Expand Down

0 comments on commit c5f1227

Please sign in to comment.