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

Add additional checks to batch processing script #307

Merged
merged 1 commit into from
Oct 9, 2017

Conversation

JoostJM
Copy link
Collaborator

@JoostJM JoostJM commented Oct 6, 2017

Add additional checks to ensure required columns are present and have a value for each case. If columns are missing, log an error and exit. If cells in required column have missing values (empty strings), log an error and skip to next case.

Also update the image and mask filepath if the path is relative, as it is assumed to be relative to the input file, not the current working directory.

Finally replace os.path.exists with os.path.isfile in featureextractor.py, as a directory is also an existing path, but should not be used during attempt to load using SimpleITK.

Add additional checks to ensure required columns are present and have a value for each case. If columns are missing, log an error and exit. If cells in required column have missing values (empty strings), log an error and skip to next case.

Also update the image and mask filepath if the path is relative, as it is assumed to be relative to the input file, not the current working directory.

Finally replace `os.path.exists` with `os.path.isfile` in `featureextractor.py`, as a directory is also an existing path, but should not be used during attempt to load using SimpleITK.
@JoostJM JoostJM force-pushed the update-batch-script branch from 604c62d to 9222e23 Compare October 6, 2017 15:58
@JoostJM JoostJM merged commit d389152 into AIM-Harvard:master Oct 9, 2017
@JoostJM JoostJM deleted the update-batch-script branch October 9, 2017 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants