[ENH]: Consistent DataGrabber naming in testing #222
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!222
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/consistent-dg-naming"
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 renames the datagrabbers to
*DataGrabberinjunifer.testingto be consistent with the generally available ones injunifer.datagrabber.Codecov Report
100.00% <ø> (ø)93.60% <100.00%> (ø)Flags with carried forward coverage won't be shown. Click here to find out more.
100.00% <ø> (ø)100.00% <100.00%> (ø)I think there also some changes that could be applied in the tests of the datagrabber module. For example, under
junifer/datagrabber/aomic/testsintest_id1000.pythere are some functions liketest_id1000_datagrabber. Should they be renamed as well? I am not sure since in that instance I guess they don't refer to a class name explicitly, but might be worth reviewing that sub-package. (example here https://github.com/juaml/junifer/blob/main/junifer/datagrabber/aomic/tests/test_id1000.py#L13)@ -19,0 +17,4 @@class OasisVBMTestingDataGrabber(BaseDataGrabber):"""Data Grabber for Oasis VBM testing data.Wrapper for :func:`nilearn.datasets.fetch_oasis_vbm`Should there be a whitespace here in the docstring i.e.
Data GrabberorDataGrabber?@ -10,3 +9,4 @@def test_OasisVBMTestingDataGrabber() -> None:"""Test Oasis VBM Testing datagrabber."""expected_elements = ["sub-01",Should it be
DataGrabberin the docstring here?@ -10,3 +9,4 @@def test_SPMAuditoryTestingDataGrabber() -> None:"""Test SPM Auditory datagrabber."""expected_elements = ["sub001",datagrabber->DataGrabber?@ -19,0 +17,4 @@class OasisVBMTestingDataGrabber(BaseDataGrabber):"""Data Grabber for Oasis VBM testing data.Wrapper for :func:`nilearn.datasets.fetch_oasis_vbm`For consistency in code, maybe it's better to remove the whitespace.
@ -10,3 +9,4 @@def test_OasisVBMTestingDataGrabber() -> None:"""Test Oasis VBM Testing datagrabber."""expected_elements = ["sub-01",I see your point, I'll update the docstrings.
I did think about that and that's a fair point. I intentionally kept this PR to
junifer.testingand I'll revisit the other ones in a separate PR. :DIn that case, I think I have nothing more to add. LGTM