Skip to content

Commit 30f0de4

Browse files
committed
CI patch for has_celestial
1 parent 685c1f7 commit 30f0de4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

ndcube/ndcube.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -801,10 +801,12 @@ def reproject_to(self,
801801
"""
802802
try:
803803
from reproject import reproject_adaptive, reproject_exact, reproject_interp # noqa: PLC0415
804-
from reproject.wcs_utils import has_celestial # noqa: PLC0415
805-
except ModuleNotFoundError:
806-
raise ImportError(f"The {type(self).__name__}.reproject_to method requires "
807-
f"the `reproject` library to be installed.")
804+
from reproject._wcs_utils import has_celestial # noqa: PLC0415
805+
except ModuleNotFoundError as e:
806+
raise ImportError(
807+
f"The {type(self).__name__}.reproject_to method requires "
808+
f"the `reproject` library to be installed."
809+
) from e
808810

809811
algorithms = {
810812
"interpolation": reproject_interp,

0 commit comments

Comments
 (0)