Skip to content

Commit

Permalink
Fixed float32/64 dtype for >65535
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-J-Brown committed May 25, 2021
1 parent ced01dc commit 5053e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hipercam/scripts/joinup.py
Expand Up @@ -399,7 +399,7 @@ def joinup(args=None):
ystart = (wind.lly - llymin) // ybin
data[ystart:ystart+wind.ny,xstart:xstart+wind.nx] = wind.data

if dtype == 'uint16' and data.min() < 0 or data.max() > 65535:
if dtype == 'uint16' and (data.min() < 0 or data.max() > 65535):
raise hcam.HipercamError(
f'CCD {cnam}, frame {nf}, data range {data.min()} to {data.max()}, is incompatible with uint16'
)
Expand Down

0 comments on commit 5053e4f

Please sign in to comment.