Skip to content

Commit

Permalink
add a helpful error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Sep 9, 2023
1 parent 2bcfc55 commit bde9d46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reproject/mosaicking/coadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ def reproject_and_coadd(
xc_out, yc_out = wcs_out.low_level_wcs.celestial.world_to_pixel(wcs_in.celestial.pixel_to_world(xc, yc))
zc_out = wcs_out.low_level_wcs.spectral.world_to_pixel(wcs_in.spectral.pixel_to_world(zc))
shape_out_cel = shape_out[1:]
else:
raise ValueError(f"Wrong number of dimensions: {array_in.ndim}")

# Determine the cutout parameters

Expand Down

0 comments on commit bde9d46

Please sign in to comment.