[ENH]: Update get_template interface #413

Merged
synchon merged 4 commits from update/get-template into main 2024-12-06 10:38:00 +00:00
synchon commented 2024-12-05 16:30:08 +00:00 (Migrated from github.com)
  • description of feature/fix
  • tests added/passed
  • add an entry for the latest changes

This PR replaces the target_data parameter of get_template, with target_img.

* [x] description of feature/fix * [x] tests added/passed * [x] add an entry for the latest changes This PR replaces the `target_data` parameter of `get_template`, with `target_img`.
github-actions[bot] commented 2024-12-05 16:46:43 +00:00 (Migrated from github.com)
PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-12-06 10:51 UTC
[PR Preview Action](https://github.com/rossjrw/pr-preview-action) v1.4.8 :---: Preview removed because the pull request was closed. 2024-12-06 10:51 UTC <!-- Sticky Pull Request Commentpr-preview -->
codecov[bot] commented 2024-12-05 16:59:28 +00:00 (Migrated from github.com)

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 0.01%. Comparing base (6c0c909) to head (c2ac519).

Files with missing lines Patch % Lines
junifer/data/masks/_masks.py 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #413   +/-   ##
=====================================
  Coverage   0.01%   0.01%           
=====================================
  Files        133     133           
  Lines       5676    5675    -1     
=====================================
  Hits           1       1           
+ Misses      5675    5674    -1     
Flag Coverage Δ
junifer 0.00% <0.00%> (ø)

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

Files with missing lines Coverage Δ
junifer/data/masks/_ants_mask_warper.py 0.00% <ø> (ø)
...er/data/parcellations/_ants_parcellation_warper.py 0.00% <ø> (ø)
junifer/data/template_spaces.py 0.00% <ø> (ø)
junifer/preprocess/warping/_ants_warper.py 0.00% <ø> (ø)
junifer/data/masks/_masks.py 0.00% <0.00%> (ø)
## [Codecov](https://app.codecov.io/gh/juaml/junifer/pull/413?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 `0%` with `1 line` in your changes missing coverage. Please review. > Project coverage is 0.01%. Comparing base [(`6c0c909`)](https://app.codecov.io/gh/juaml/junifer/commit/6c0c9099e7f7a7f6ed22ccb6006780625433a43c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) to head [(`c2ac519`)](https://app.codecov.io/gh/juaml/junifer/commit/c2ac5194609b9a1b26b95b0cf384eabcc675804c?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml). | [Files with missing lines](https://app.codecov.io/gh/juaml/junifer/pull/413?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/masks/\_masks.py](https://app.codecov.io/gh/juaml/junifer/pull/413?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==) | 0.00% | [1 Missing :warning: ](https://app.codecov.io/gh/juaml/junifer/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | <details><summary>Additional details and impacted files</summary> [![Impacted file tree graph](https://app.codecov.io/gh/juaml/junifer/pull/413/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/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) ```diff @@ Coverage Diff @@ ## main #413 +/- ## ===================================== Coverage 0.01% 0.01% ===================================== Files 133 133 Lines 5676 5675 -1 ===================================== Hits 1 1 + Misses 5675 5674 -1 ``` | [Flag](https://app.codecov.io/gh/juaml/junifer/pull/413/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | Coverage Δ | | |---|---|---| | [junifer](https://app.codecov.io/gh/juaml/junifer/pull/413/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | `0.00% <0.00%> (ø)` | | 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/413?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml) | Coverage Δ | | |---|---|---| | [junifer/data/masks/\_ants\_mask\_warper.py](https://app.codecov.io/gh/juaml/junifer/pull/413?src=pr&el=tree&filepath=junifer%2Fdata%2Fmasks%2F_ants_mask_warper.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhL21hc2tzL19hbnRzX21hc2tfd2FycGVyLnB5) | `0.00% <ø> (ø)` | | | [...er/data/parcellations/\_ants\_parcellation\_warper.py](https://app.codecov.io/gh/juaml/junifer/pull/413?src=pr&el=tree&filepath=junifer%2Fdata%2Fparcellations%2F_ants_parcellation_warper.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhL3BhcmNlbGxhdGlvbnMvX2FudHNfcGFyY2VsbGF0aW9uX3dhcnBlci5weQ==) | `0.00% <ø> (ø)` | | | [junifer/data/template\_spaces.py](https://app.codecov.io/gh/juaml/junifer/pull/413?src=pr&el=tree&filepath=junifer%2Fdata%2Ftemplate_spaces.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9kYXRhL3RlbXBsYXRlX3NwYWNlcy5weQ==) | `0.00% <ø> (ø)` | | | [junifer/preprocess/warping/\_ants\_warper.py](https://app.codecov.io/gh/juaml/junifer/pull/413?src=pr&el=tree&filepath=junifer%2Fpreprocess%2Fwarping%2F_ants_warper.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=juaml#diff-anVuaWZlci9wcmVwcm9jZXNzL3dhcnBpbmcvX2FudHNfd2FycGVyLnB5) | `0.00% <ø> (ø)` | | | [junifer/data/masks/\_masks.py](https://app.codecov.io/gh/juaml/junifer/pull/413?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==) | `0.00% <0.00%> (ø)` | | </details>
fraimondo (Migrated from github.com) requested changes 2024-12-05 18:19:14 +00:00
@ -133,3 +133,3 @@
space=dst,
target_data=target_data,
target_img=parcellation_img,
extra_input=None,
fraimondo (Migrated from github.com) commented 2024-12-05 18:19:06 +00:00

i think this one needs to be in the refactor of the parcellation logic, otherwise it will fail tests here.

i think this one needs to be in the refactor of the parcellation logic, otherwise it will fail tests here.
synchon (Migrated from github.com) reviewed 2024-12-06 09:55:21 +00:00
@ -133,3 +133,3 @@
space=dst,
target_data=target_data,
target_img=parcellation_img,
extra_input=None,
synchon (Migrated from github.com) commented 2024-12-06 09:55:21 +00:00

I updated it for both parcellation and mask to reduce the confusion in the other PRs.

I updated it for both parcellation and mask to reduce the confusion in the other PRs.
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!413
No description provided.