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 authored and astrofrog committed Jun 5, 2024
1 parent 8975490 commit 9a98b42
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 @@ -199,6 +199,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 9a98b42

Please sign in to comment.