Improve external dependency handling of PipelineStepMixin #311
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!311
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/ext-dependency"
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 improves the external dependency handling of
PipelineStepMixinderived objects like Markers and Preprocessors. It adds a new class variable called_CONDITIONAL_DEPENDENCIESwhich interact with_DEPENDENCIESand_EXT_DEPENDENCIES. This enables easy validation and usage of objects which have multiple implementations likeReHo,ALFFandBOLDWarper. It also sets a nice foundation for similar objects in the future as will be implemented in #161 and #301. It also refactors internal code wherever required.Codecov Report
Attention: Patch coverage is
78.23529%with74 linesin your changes are missing coverage. Please review.Additional details and impacted files
88.55% <78.23%> (-0.41%)Flags with carried forward coverage won't be shown. Click here to find out more.
100.00% <100.00%> (ø)100.00% <100.00%> (ø)100.00% <100.00%> (ø)48.43% <100.00%> (+0.05%)38.23% <100.00%> (-9.27%)38.23% <100.00%> (-9.27%)92.59% <75.00%> (ø)93.10% <75.00%> (ø)39.65% <66.66%> (+0.76%)93.47% <93.47%> (ø)... and 1 file with indirect coverage changes
Can you also update
docs/extending/markers.rst? Maybe create a small section on "dependencies" and then refer to that?This way, we will document everything that is happening on this PR (which was also a bit undocumented before)
I'm already updating the docs for the release at https://github.com/juaml/junifer/tree/update/improve-docs . Will address your suggestions there along with a few more things that I noticed aren't there.