From 7f5ec6e85f2e15c52c297c2e7bc4aeea345c25c4 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Thu, 25 Jul 2024 16:33:01 +0200 Subject: [PATCH] remove `int16` but test the float dtypes (which only works by restricting the values) --- healpix_convolution/tests/test_convolution.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/healpix_convolution/tests/test_convolution.py b/healpix_convolution/tests/test_convolution.py index 8030457..068c943 100644 --- a/healpix_convolution/tests/test_convolution.py +++ b/healpix_convolution/tests/test_convolution.py @@ -11,7 +11,13 @@ data=npst.arrays( shape=st.sampled_from([(5,), (10, 5)]), # TODO: figure out how to deal with floating point values - dtype=st.sampled_from(["int16", "int32", "int64"]), + dtype=st.sampled_from(["int32", "int64", "float32", "float64"]), + elements={ + "allow_infinity": False, + "allow_subnormal": False, + "min_value": 1e9, + "max_value": 1e9, + }, ), ) @settings(deadline=1000)