[ENH]: Enable extendable data registries #450

Merged
synchon merged 11 commits from feat/extendable-data-registry into main 2025-07-11 08:43:01 +00:00
synchon commented 2025-07-10 10:06:10 +00:00 (Migrated from github.com)
  • description of feature/fix
  • tests added/passed
  • add an entry for the latest changes

This PR adds support for extending data registries with custom ones. Custom data registries can be interacted via *_data functions just like in-built ones.

* [x] description of feature/fix * [x] tests added/passed * [x] add an entry for the latest changes This PR adds support for extending data registries with custom ones. Custom data registries can be interacted via `*_data` functions just like in-built ones.
codecov[bot] commented 2025-07-10 10:06:47 +00:00 (Migrated from github.com)

Codecov Report

Attention: Patch coverage is 93.05556% with 5 lines in your changes missing coverage. Please review.

Project coverage is 91.15%. Comparing base (e8a99eb) to head (a6bcfd9).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
junifer/data/_dispatch.py 91.80% 5 Missing ⚠️

❌ Your patch status has failed because the patch coverage (93.05%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #450      +/-   ##
==========================================
+ Coverage   91.09%   91.15%   +0.06%     
==========================================
  Files         134      134              
  Lines        5422     5460      +38     
  Branches      903      898       -5     
==========================================
+ Hits         4939     4977      +38     
- Misses        309      310       +1     
+ Partials      174      173       -1     
Flag Coverage Δ
docs 100.00% <ø> (ø)
junifer 91.15% <93.05%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
junifer/api/decorators.py 100.00% <100.00%> (ø)
junifer/data/coordinates/_coordinates.py 100.00% <100.00%> (ø)
junifer/data/masks/_masks.py 69.85% <100.00%> (-0.15%) ⬇️
junifer/data/parcellations/_parcellations.py 93.00% <100.00%> (+0.88%) ⬆️
junifer/typing/_typing.py 100.00% <100.00%> (ø)
junifer/data/_dispatch.py 93.50% <91.80%> (-1.85%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
## [Codecov](https://app.codecov.io/gh/juaml/junifer/pull/450?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) Report Attention: Patch coverage is `93.05556%` with `5 lines` in your changes missing coverage. Please review. > Project coverage is 91.15%. Comparing base [(`e8a99eb`)](https://app.codecov.io/gh/juaml/junifer/commit/e8a99eb0e63858306a78c87d10c5d0ed797328e4?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) to head [(`a6bcfd9`)](https://app.codecov.io/gh/juaml/junifer/commit/a6bcfd960ced526494f905f07a81637914eb5543?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml). > Report is 14 commits behind head on main. | [Files with missing lines](https://app.codecov.io/gh/juaml/junifer/pull/450?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | Patch % | Lines | |---|---|---| | [junifer/data/\_dispatch.py](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&filepath=junifer%2Fdata%2F_dispatch.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhL19kaXNwYXRjaC5weQ==) | 91.80% | [5 Missing :warning: ](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | :x: Your patch status has failed because the patch coverage (93.05%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the [target](https://docs.codecov.com/docs/commit-status#target) coverage. <details><summary>Additional details and impacted files</summary> [![Impacted file tree graph](https://app.codecov.io/gh/juaml/junifer/pull/450/graphs/tree.svg?width=650&height=150&src=pr&token=5H21JuZXMw&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml)](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) ```diff @@ Coverage Diff @@ ## main #450 +/- ## ========================================== + Coverage 91.09% 91.15% +0.06% ========================================== Files 134 134 Lines 5422 5460 +38 Branches 903 898 -5 ========================================== + Hits 4939 4977 +38 - Misses 309 310 +1 + Partials 174 173 -1 ``` | [Flag](https://app.codecov.io/gh/juaml/junifer/pull/450/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | Coverage Δ | | |---|---|---| | [docs](https://app.codecov.io/gh/juaml/junifer/pull/450/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | `100.00% <ø> (ø)` | | | [junifer](https://app.codecov.io/gh/juaml/junifer/pull/450/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | `91.15% <93.05%> (+0.06%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files with missing lines](https://app.codecov.io/gh/juaml/junifer/pull/450?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | Coverage Δ | | |---|---|---| | [junifer/api/decorators.py](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&filepath=junifer%2Fapi%2Fdecorators.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9hcGkvZGVjb3JhdG9ycy5weQ==) | `100.00% <100.00%> (ø)` | | | [junifer/data/coordinates/\_coordinates.py](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&filepath=junifer%2Fdata%2Fcoordinates%2F_coordinates.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhL2Nvb3JkaW5hdGVzL19jb29yZGluYXRlcy5weQ==) | `100.00% <100.00%> (ø)` | | | [junifer/data/masks/\_masks.py](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&filepath=junifer%2Fdata%2Fmasks%2F_masks.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhL21hc2tzL19tYXNrcy5weQ==) | `69.85% <100.00%> (-0.15%)` | :arrow_down: | | [junifer/data/parcellations/\_parcellations.py](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&filepath=junifer%2Fdata%2Fparcellations%2F_parcellations.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhL3BhcmNlbGxhdGlvbnMvX3BhcmNlbGxhdGlvbnMucHk=) | `93.00% <100.00%> (+0.88%)` | :arrow_up: | | [junifer/typing/\_typing.py](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&filepath=junifer%2Ftyping%2F_typing.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci90eXBpbmcvX3R5cGluZy5weQ==) | `100.00% <100.00%> (ø)` | | | [junifer/data/\_dispatch.py](https://app.codecov.io/gh/juaml/junifer/pull/450?src=pr&el=tree&filepath=junifer%2Fdata%2F_dispatch.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhL19kaXNwYXRjaC5weQ==) | `93.50% <91.80%> (-1.85%)` | :arrow_down: | </details> <details><summary> :rocket: New features to boost your workflow: </summary> - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems. </details>
github-actions[bot] commented 2025-07-10 10:48:19 +00:00 (Migrated from github.com)
PR Preview Action v1.6.2
Preview removed because the pull request was closed.
2025-07-11 09:24 UTC
[PR Preview Action](https://github.com/rossjrw/pr-preview-action) v1.6.2 :---: Preview removed because the pull request was closed. 2025-07-11 09:24 UTC <!-- Sticky Pull Request Commentpr-preview -->
fraimondo (Migrated from github.com) approved these changes 2025-07-10 19:57:15 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
juaml/junifer!450
No description provided.