[ENH]: Improving DataGrabber patterns #308
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!308
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?
Discussed in https://github.com/juaml/junifer/discussions/307
Originally posted by synchon February 26, 2024
With the introduction of template space definitions in #252 and #268, the use of
PatternDataladDataGrabbervia YAML is broken as of9316bcadue to space awareness. Thespacekey is added inget_itemmethod of the DataGrabber and not defined in the constructor. Thespacekey is important for every other component downstream and not having that breaks the pipeline. The solution I propose is not backwards compatible as it re-defines the structure of thepatternsparameter, but in my opinion the cleanest and leanest way:Old:
Python:
YAML:
New:
Python:
YAML:
I'm happy to discuss alternatives and adapt my solution.
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.
LGTM