Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ndcube/ndcube.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,12 @@ def reproject_to(self,
"""
try:
from reproject import reproject_adaptive, reproject_exact, reproject_interp # noqa: PLC0415
from reproject.wcs_utils import has_celestial # noqa: PLC0415
try:
# Latest version of reproject has made this private
# but until we pin on that version, we need a fallback for older versions.
from reproject._wcs_utils import has_celestial # noqa: PLC0415
except ImportError:
from reproject.wcs_utils import has_celestial # noqa: PLC0415
except ModuleNotFoundError:
raise ImportError(f"The {type(self).__name__}.reproject_to method requires "
f"the `reproject` library to be installed.")
Expand Down
Loading