Skip to content

Commit 8dd3014

Browse files
committed
formatting
1 parent 6021a2c commit 8dd3014

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

viscy/utils/image_utils.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ def im_bit_convert(im, bit=16, norm=False, limit=[]):
2121
/ (limit[1] - limit[0] + sys.float_info.epsilon)
2222
* (2**bit - 1)
2323
)
24-
im = np.clip(
25-
im, 0, 2**bit - 1
26-
) # clip the values to avoid wrap-around by np.astype
24+
im = np.clip(im, 0, 2**bit - 1) # clip the values to avoid wrap-around by np.astype
2725
if bit == 8:
2826
im = im.astype(np.uint8, copy=False) # convert to 8 bit
2927
else:

0 commit comments

Comments
 (0)