Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace resource_filename with load_data #345

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions nibabies/workflows/bold/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@
# For now, define it and don't run it
# TODO: Move to TemplateFlow

# tpl_avgwmparc = resource_filename(
# 'nibabies', 'data/tpl-MNI152NLin6Asym_res-01_desc-avgwmparc_dseg.nii.gz'
# )
# tpl_avgwmparc = load_data("tpl-MNI152NLin6Asym_res-01_desc-avgwmparc_dseg.nii.gz")
# applywarp_tpl = pe.Node(
# fsl.ApplyWarp(in_file=tpl_avgwmparc, ref_file=tpl_rois, interp="nn"),
# name="applywarp_std"
Expand Down Expand Up @@ -141,7 +139,7 @@
)

# reuse saved atlas to atlas transform
atlas_xfm = resource_filename("nibabies", "data/MNIInfant_to_MNI1526NLinAsym.mat")
atlas_xfm = load_data("MNIInfant_to_MNI1526NLinAsym.mat")

Check warning on line 142 in nibabies/workflows/bold/alignment.py

View check run for this annotation

Codecov / codecov/patch

nibabies/workflows/bold/alignment.py#L142

Added line #L142 was not covered by tests
inputnode = pe.Node(
niu.IdentityInterface(fields=["MNIInfant_bold", "MNIInfant_rois", "MNI152_rois"]),
name="inputnode",
Expand Down
Loading