Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
fix(test_interpolate): ensure interpolation nodes not becoming too sm…
Browse files Browse the repository at this point in the history
…all in orders of magnitude
  • Loading branch information
BjoernLudwigPTB committed Aug 18, 2022
1 parent 2596f24 commit f3bf886
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_interpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def draw_fill_values(strategy_spec: str):

# Draw values to evaluate the interpolant at.
x_new = draw(hnp.arrays(**strategy_params))
if np.max(np.abs(x)) < 1e-300:
assume(np.min(np.abs(x_new[x_new != 0])) / np.min(np.abs(x[x != 0])) >= 1)

if extrapolate:
# In case we want to extrapolate, make sure we actually do after having
Expand Down

0 comments on commit f3bf886

Please sign in to comment.