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 Mar 15, 2023
1 parent a05ccb0 commit a0f3111
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 @@ -190,6 +190,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:]

Check warning on line 192 in reproject/mosaicking/coadd.py

View check run for this annotation

Codecov / codecov/patch

reproject/mosaicking/coadd.py#L190-L192

Added lines #L190 - L192 were not covered by tests
else:
raise ValueError(f"Wrong number of dimensions: {array_in.ndim}")

Check warning on line 194 in reproject/mosaicking/coadd.py

View check run for this annotation

Codecov / codecov/patch

reproject/mosaicking/coadd.py#L194

Added line #L194 was not covered by tests

# Determine the cutout parameters

Expand Down

0 comments on commit a0f3111

Please sign in to comment.