Skip to content

Commit

Permalink
Hopefully fixed a flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
brownbaerchen committed Nov 9, 2023
1 parent 76c3ba3 commit 9976f09
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def check_order(dts, **kwargs):
for key in keys:
errors = np.array([res[dt][key] for dt in dts])

mask = np.logical_and(errors < 1e-0, errors > 1e-14)
mask = np.logical_and(errors < 1e-1, errors > 1e-12)
order = np.log(errors[mask][1:] / errors[mask][:-1]) / np.log(dts[mask][1:] / dts[mask][:-1])

assert np.isclose(
Expand All @@ -183,7 +183,7 @@ def test_extrapolation_within_Q(num_nodes, quad_type):

import numpy as np

steps = np.logspace(1, -4, 20)
steps = np.logspace(-1, -3, 10)
check_order(steps, **kwargs)


Expand Down

0 comments on commit 9976f09

Please sign in to comment.