Skip to content

Commit

Permalink
BUG wrong image file path
Browse files Browse the repository at this point in the history
  • Loading branch information
esheldon committed Jun 11, 2024
1 parent 8ccb4db commit e05f3b6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fitsio/tests/test_empty_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
def test_empty_image_slice():
shape = (10, 10)
data = np.arange(shape[0] * shape[1]).reshape(shape)
outfile = 'test_image.fits'
with tempfile.TemporaryDirectory() as tmpdir:
fname = os.path.join(tmpdir, 'test.fits')
write(fname, data, clobber=True)

# third, test slices using fitsio
with FITS(outfile) as fits:
with FITS(fname) as fits:
# first, passing the slices directly
# overlap = f[0][xslice, yslice]
overlap = fits[0][0:8, 0:0]
Expand Down

0 comments on commit e05f3b6

Please sign in to comment.