Skip to content

Commit

Permalink
Update src/murfey/util/lif.py
Browse files Browse the repository at this point in the history
Used logger instead of print

Co-authored-by: Daniel Hatton <daniel.hatton@diamond.ac.uk>
  • Loading branch information
tieneupin and d-j-hatton committed May 8, 2024
1 parent 479e243 commit 34cc0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/murfey/util/lif.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def convert_lif_to_tiff(file: Path):
# Initial rescaling if bit depth not 8, 16, 32, or 64-bit
bit_depth = img.bit_depth[c] # Initial bit depth
if not any(bit_depth == b for b in [8, 16, 32, 64]):
print("Bit depth non-standard, converting to 16-bit")
logger.info("Bit depth non-standard, converting to 16-bit")
arr, bit_depth = rescale_to_bit_depth(
array=arr, initial_bit_depth=bit_depth, target_bit_depth=16
)
Expand Down

0 comments on commit 34cc0fc

Please sign in to comment.