From 7462d5f9b2d0822c8172a7f7399935ea6e356ee7 Mon Sep 17 00:00:00 2001 From: Gordian Edenhofer <gordian.edenhofer@gmail.com> Date: Sun, 16 Feb 2025 17:22:18 -0600 Subject: [PATCH] Fix healpy optional dep in test_re --- Dockerfile | 2 +- pyproject.toml | 1 + test/test_re/test_refine_healpix.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0445d2810..10b8e91ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN pip3 install --break-system-packages \ # Packages needed for NIFTy scipy \ # Optional nifty dependencies - matplotlib h5py astropy ducc0 jax jaxlib jaxbind mpi4py \ + matplotlib h5py astropy ducc0 jax jaxlib jaxbind mpi4py healpy \ # Testing dependencies pytest pytest-cov pytest-xdist \ # Documentation build dependencies diff --git a/pyproject.toml b/pyproject.toml index b4c25a99a..5c0108cab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,7 @@ test = [ "pytest-xdist", "ducc0", "nifty8[re]", + "nifty8[util]", ] all = ["nifty8[re,native,parallel,doc,util,test]"] diff --git a/test/test_re/test_refine_healpix.py b/test/test_re/test_refine_healpix.py index d3adb2d37..64ee91bbe 100644 --- a/test/test_re/test_refine_healpix.py +++ b/test/test_re/test_refine_healpix.py @@ -15,6 +15,8 @@ from numpy.testing import assert_allclose, assert_array_equal import nifty8.re as jft +pytest.importorskip("healpy") + jax.config.update("jax_enable_x64", True) pmp = pytest.mark.parametrize -- GitLab