Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed May 2, 2024
1 parent 39c1c6c commit f922146
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions python/tests/splines_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,7 @@ def param_by_name(id):
if sllh_atol is None:
sllh_atol = np.finfo(float).eps
sllh_err_abs = abs(sllh).max()
if (
sllh_err_abs > sllh_atol and debug is not True
) or debug == "print":
print(f"sllh_atol={sllh_atol}")
print(f"sllh_err_abs = {sllh_err_abs}")
if not debug:
assert sllh_err_abs <= sllh_atol
assert sllh_err_abs <= sllh_atol, f"{sllh_err_abs=} {sllh_atol=}"
else:
assert sllh is None

Expand Down Expand Up @@ -922,7 +916,7 @@ def example_spline_1(
tols = (
dict(llh_rtol=1e-15, x_rtol=1e-8, x_atol=1e-7),
dict(llh_rtol=1e-15, x_rtol=1e-8, x_atol=1e-7),
dict(llh_rtol=1e-15, sllh_atol=5e-8, x_rtol=1e-8, x_atol=1e-7),
dict(llh_rtol=1e-15, sllh_atol=5e-7, x_rtol=1e-8, x_atol=1e-7),
)
else:
tols = (
Expand Down

0 comments on commit f922146

Please sign in to comment.