Skip to content

Commit

Permalink
relax time requirement in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
amaurea committed Jan 8, 2025
1 parent 7eeb7bd commit 51331de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ['meson-python', 'numpy', 'cython', 'versioneer[toml]', 'build']

[project]
name = 'pixell'
version = "0.27.2"
version = "0.28.0"
description = "A rectangular pixel map manipulation and harmonic analysis library derived from Sigurd Naess' enlib."
readme = 'README.rst'
requires-python = '>=3.9'
Expand Down
3 changes: 2 additions & 1 deletion tests/test_pixell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,8 @@ def f(y,x): return np.sin(2*np.pi*3*y/shape[-2])+np.cos(2*np.pi*5*x/shape[-1])
assert np.allclose(vals_ip, vals_raw)
time_full = t2-t1
time_eval = t4-t3
assert time_eval < time_full / 100
# Should be much faster than 10%, but timing is unreliable, especially in github actions
assert time_eval < time_full / 10
# Also test that we can pass the interpolator as an argument
vals_ip2 = utils.interpol(data, opix, mode=mode, order=order, ip=ip)
assert np.allclose(vals_ip2, vals_raw)

0 comments on commit 51331de

Please sign in to comment.