Skip to content

Commit 1ea2bd7

Browse files
committed
linting
1 parent 1097cfb commit 1ea2bd7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

astrocut/asdf_cutouts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def get_cutout(data: asdf.tags.core.ndarray.NDArrayType, coords: Union[tuple, Sk
101101
cutout = astropy.nddata.Cutout2D(data, position=coords, wcs=wcs, size=(size, size), mode='partial',
102102
fill_value=fill_value)
103103
except astropy.nddata.utils.NoOverlapError as e:
104-
raise RuntimeError('Could not create 2d cutout. The requested cutout does not overlap with the original image.') from e
104+
raise RuntimeError('Could not create 2d cutout. The requested cutout does not overlap with the '
105+
'original image.') from e
105106

106107
# check if the data is a quantity and get the array data
107108
if isinstance(cutout.data, astropy.units.Quantity):

astrocut/tests/test_asdf_cut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _make_fake(nx, ny, ra, dec, zero=False, asint=False):
5151
if zero:
5252
data = np.zeros([nx, ny])
5353
else:
54-
size = nx * ny
54+
size = nx * ny
5555
data = np.arange(size).reshape(nx, ny)
5656

5757
# make a quantity

0 commit comments

Comments
 (0)