Skip to content

Commit

Permalink
Merge pull request #221 from imcf/fix-typechecking
Browse files Browse the repository at this point in the history
Fix regression introduced in 6923640
  • Loading branch information
will-moore authored Jun 20, 2024
2 parents 5a90893 + 016a249 commit c20d273
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions omero/export_scripts/Make_Movie.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
from omero.constants.metadata import NSMOVIE

from io import BytesIO
from types import StringTypes

from PIL import Image, ImageDraw

Expand Down Expand Up @@ -260,7 +259,7 @@ def valid_channels(set, size_c):
if (len(set) == 0):
return False
for val in set:
if isinstance(val, StringTypes):
if isinstance(val, str):
val = int(val.split('|')[0].split('$')[0])
if (val < 0 or val > size_c):
return False
Expand Down

0 comments on commit c20d273

Please sign in to comment.