Fix value in error message about negative relative tolerance
This commit is contained in:
parent
4dbb29431a
commit
1f131afb07
|
@ -317,7 +317,7 @@ class ApproxScalar(ApproxBase):
|
||||||
|
|
||||||
if relative_tolerance < 0:
|
if relative_tolerance < 0:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"relative tolerance can't be negative: {absolute_tolerance}"
|
f"relative tolerance can't be negative: {relative_tolerance}"
|
||||||
)
|
)
|
||||||
if math.isnan(relative_tolerance):
|
if math.isnan(relative_tolerance):
|
||||||
raise ValueError("relative tolerance can't be NaN.")
|
raise ValueError("relative tolerance can't be NaN.")
|
||||||
|
|
Loading…
Reference in New Issue