[ENH]: Refactor DataGrabber patterns #341
No reviewers
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!341
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/dg-patterns"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR refactors the
patternsfor DataGrabbers by introducing "nested data types" likemaskfor particular data type likeBOLDinstead ofBOLD_mask. This cleans up the interface and logically groups the available data while reducing the chances of silly errors like not specifyingBOLD_maskin DataGrabbertypeswhen mask is desired from the dataset.Codecov Report
All modified and coverable lines are covered by tests ✅
Additional details and impacted files
100.00% <ø> (ø)Flags with carried forward coverage won't be shown. Click here to find out more.
@ -180,0 +185,4 @@to_get.append(v)# Add nested data type pathif isinstance(v, dict) and "path" in v:to_get.append(v["path"])Ok. Only two levels supported for now.
@ -180,0 +185,4 @@to_get.append(v)# Add nested data type pathif isinstance(v, dict) and "path" in v:to_get.append(v["path"])Yeah I don't see a case of going further in a while (hopefully wouldn't need to).