Skip to content

Commit

Permalink
remove clip
Browse files Browse the repository at this point in the history
  • Loading branch information
esheldon committed Aug 20, 2024
1 parent c7f68e3 commit 3e937f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fitsio/fitslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,7 @@ def get_dither_seed(dither_seed):
seed_out = 0
else:
# must fit in an int
seed_out = numpy.int32(dither_seed).clip(min=-1)
seed_out = numpy.int32(dither_seed)

if seed_out > 10_000:
raise ValueError(
Expand Down
3 changes: 2 additions & 1 deletion fitsio/tests/test_image_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ def test_compressed_seed(compress, seed_type, use_fits_object, dtype):
dither_seed2 = 'checksum'
elif seed_type == 'checksum_int':
dither_seed1 = -1
dither_seed2 = -1
# any negative means use checksum
dither_seed2 = -3

with tempfile.TemporaryDirectory() as tmpdir:
fname1 = os.path.join(tmpdir, 'test1.fits')
Expand Down

0 comments on commit 3e937f9

Please sign in to comment.