Skip to content

Commit 3a25507

Browse files
authored
Merge pull request #345 from tsalo/resource_filename
Replace `resource_filename` with `load_data`
2 parents f5bc373 + 6e06fff commit 3a25507

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nibabies/workflows/bold/alignment.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ def init_subcortical_rois_wf(*, name="subcortical_rois_wf"):
6161
# For now, define it and don't run it
6262
# TODO: Move to TemplateFlow
6363

64-
# tpl_avgwmparc = resource_filename(
65-
# 'nibabies', 'data/tpl-MNI152NLin6Asym_res-01_desc-avgwmparc_dseg.nii.gz'
66-
# )
64+
# tpl_avgwmparc = load_data("tpl-MNI152NLin6Asym_res-01_desc-avgwmparc_dseg.nii.gz")
6765
# applywarp_tpl = pe.Node(
6866
# fsl.ApplyWarp(in_file=tpl_avgwmparc, ref_file=tpl_rois, interp="nn"),
6967
# name="applywarp_std"
@@ -141,7 +139,7 @@ def init_subcortical_mni_alignment_wf(*, vol_sigma=0.8, name="subcortical_mni_al
141139
)
142140

143141
# reuse saved atlas to atlas transform
144-
atlas_xfm = resource_filename("nibabies", "data/MNIInfant_to_MNI1526NLinAsym.mat")
142+
atlas_xfm = load_data("MNIInfant_to_MNI1526NLinAsym.mat")
145143
inputnode = pe.Node(
146144
niu.IdentityInterface(fields=["MNIInfant_bold", "MNIInfant_rois", "MNI152_rois"]),
147145
name="inputnode",

0 commit comments

Comments
 (0)