Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
havok2063 committed Jan 23, 2024
1 parent 1097cfb commit 1ea2bd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion astrocut/asdf_cutouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def get_cutout(data: asdf.tags.core.ndarray.NDArrayType, coords: Union[tuple, Sk
cutout = astropy.nddata.Cutout2D(data, position=coords, wcs=wcs, size=(size, size), mode='partial',
fill_value=fill_value)
except astropy.nddata.utils.NoOverlapError as e:
raise RuntimeError('Could not create 2d cutout. The requested cutout does not overlap with the original image.') from e
raise RuntimeError('Could not create 2d cutout. The requested cutout does not overlap with the '
'original image.') from e

# check if the data is a quantity and get the array data
if isinstance(cutout.data, astropy.units.Quantity):
Expand Down
2 changes: 1 addition & 1 deletion astrocut/tests/test_asdf_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _make_fake(nx, ny, ra, dec, zero=False, asint=False):
if zero:
data = np.zeros([nx, ny])
else:
size = nx * ny
size = nx * ny
data = np.arange(size).reshape(nx, ny)

# make a quantity
Expand Down

0 comments on commit 1ea2bd7

Please sign in to comment.