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

Preprocess is not functioning in certain conditions #534

Closed
sarthakpati opened this issue Dec 19, 2022 · 0 comments · Fixed by #535
Closed

Preprocess is not functioning in certain conditions #534

sarthakpati opened this issue Dec 19, 2022 · 0 comments · Fixed by #535
Assignees
Labels
bug Something isn't working

Comments

@sarthakpati
Copy link
Collaborator

Describe the bug
When 'path' is absent from the subject dictionary in the first image of a subject, the entire process fails because subject["1"]["path"][0] is empty.

To Reproduce
Steps to reproduce the behavior:

  1. Put a case where subject["1"]["path"][0] is empty.
  2. Run gandlf_preprocess on it using any config.
  3. See error

Expected behavior
Even if the 'path' is absent, it should get picked up from the 'path_to_metadata' key.

Screenshots
N.A.

GaNDLF Version

0.0.16-dev

Desktop (please complete the following information):
N.A.

Additional context
N.A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant