Skip to content

ENH: Warning when trying to open in Python an image file that doesn't…#910

Merged
thewtex merged 1 commit intoInsightSoftwareConsortium:masterfrom
thewtex:improve_python_error_message_if_image_file_doesnt_exist
May 18, 2019
Merged

ENH: Warning when trying to open in Python an image file that doesn't…#910
thewtex merged 1 commit intoInsightSoftwareConsortium:masterfrom
thewtex:improve_python_error_message_if_image_file_doesnt_exist

Conversation

@thewtex
Copy link
Copy Markdown
Member

@thewtex thewtex commented May 18, 2019

… exist

When opening an image file in Python through the itkTemplate class (i.e.
itk.ImageFileReader.New(FileName="my_file.png"), the error message
warns the user that the file does not exist. The error message matches
the error message printed in C++ or when using directly the ImageFileReader
class (i.e. itk.ImageFileReader[ImageType].New(FileName="my_file.png")).

… exist

When opening an image file in Python through the `itkTemplate` class (i.e.
`itk.ImageFileReader.New(FileName="my_file.png")`, the error message
warns the user that the file does not exist. The error message matches
the error message printed in C++ or when using directly the `ImageFileReader`
class (i.e. `itk.ImageFileReader[ImageType].New(FileName="my_file.png")`).
@thewtex thewtex merged commit 66737ee into InsightSoftwareConsortium:master May 18, 2019
@thewtex thewtex deleted the improve_python_error_message_if_image_file_doesnt_exist branch May 18, 2019 21:40
@thewtex thewtex restored the improve_python_error_message_if_image_file_doesnt_exist branch May 18, 2019 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant