diff --git a/packages/pipeline/src/pyearthtools/pipeline/operations/xarray/remapping/__init__.py b/packages/pipeline/src/pyearthtools/pipeline/operations/xarray/remapping/__init__.py index e153332f..99832cec 100644 --- a/packages/pipeline/src/pyearthtools/pipeline/operations/xarray/remapping/__init__.py +++ b/packages/pipeline/src/pyearthtools/pipeline/operations/xarray/remapping/__init__.py @@ -19,6 +19,15 @@ import warnings -from .healpix import HEALPix # noqa: F401 - __all__ = ["HEALPix"] + +try: + from .healpix import HEALPix # noqa: F401 + +except: + + class HealPix: + def __init__(self): + warnings.warn( + "Could not import the healpix projection, please install the 'healpy' and 'reproject' optional dependencies" + )