Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenIJTiff - Escape non ImageJ Tiff files #574

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/OpenIJTIFF.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_ijtiff(fpath: [str, Path]):
if tiff is None:
raise ValueError("tiff file could not be found in the given path:\n{}".format(fpath))
if not tiff.is_imagej:
raise TypeError("This module is intended to parse from ImageJ-created tiff files. This tiff file was apparently not created by ImageJ.")
raise TypeError("This module is intended to parse from ImageJ-created tiff files.\nThis tiff file was apparently not created by ImageJ.\nTry from skimage import io \nio.imread(path_to_file)")
return tiff

def escape_unicode(text: str):
Expand Down