Describe the bug
When running group-level-vbm pipeline, the warning "The generated UUID is not unique" is raised even when not True.
To Reproduce
Run brainprep group-level-vbm pipeline on data treated with brainprep v2.0.0.dev.
Expected behavior
This warning should trigger if and only if there are indeed non unique uuid created.
Screenshots
If applicable, add screenshots to help explain your problem.
Module and lines involved
I found two different reasons for that:
- the pattern f"sub-{entities['modality']}{ext}" (brainprep/utils/utils.py, line 504) does not match the files used by the pipeline. They start by 'cat' so "sub-{entities['modality']}*{ext}" would match patterns for this pipeline as well as the subject-level one
- when the uuid run is used, it does not match the run id in filename, meaning that the count variable ends up being 0. Returning "count > 1" instead of "count == 1" (line 527) would avoid this issue while still warning when true uuid duplicates are created.
Are you planning to submit a Pull Request?
Describe the bug
When running group-level-vbm pipeline, the warning "The generated UUID is not unique" is raised even when not True.
To Reproduce
Run brainprep group-level-vbm pipeline on data treated with brainprep v2.0.0.dev.
Expected behavior
This warning should trigger if and only if there are indeed non unique uuid created.
Screenshots
If applicable, add screenshots to help explain your problem.
Module and lines involved
I found two different reasons for that:
Are you planning to submit a Pull Request?