Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

Commit

Permalink
Fixing type bug
Browse files Browse the repository at this point in the history
image.dtype is a numpy class that needs to be converted to string
  • Loading branch information
jluethi authored Apr 5, 2017
1 parent 6d3a6ba commit 8940462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/jtmodules/clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def main(image, clipping_mask, plot=False):

if plot:
from jtlib import plotting
if image.dtype.startswith('uint'):
if str(image.dtype).startswith('uint'):
plots = [
plotting.create_intensity_image_plot(
image, 'ul', clip=True
Expand Down

0 comments on commit 8940462

Please sign in to comment.