From 2c42ebd178db2cc74152f7c01343f6aa01f19c73 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Mon, 12 Feb 2024 09:56:35 -0500 Subject: [PATCH 1/2] Replace resource_filename with load_data. --- nibabies/workflows/bold/alignment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nibabies/workflows/bold/alignment.py b/nibabies/workflows/bold/alignment.py index b43a2825..8c81133a 100644 --- a/nibabies/workflows/bold/alignment.py +++ b/nibabies/workflows/bold/alignment.py @@ -141,7 +141,7 @@ def init_subcortical_mni_alignment_wf(*, vol_sigma=0.8, name="subcortical_mni_al ) # reuse saved atlas to atlas transform - atlas_xfm = resource_filename("nibabies", "data/MNIInfant_to_MNI1526NLinAsym.mat") + atlas_xfm = load_data("MNIInfant_to_MNI1526NLinAsym.mat") inputnode = pe.Node( niu.IdentityInterface(fields=["MNIInfant_bold", "MNIInfant_rois", "MNI152_rois"]), name="inputnode", From 6e06fff2d649aabedea2e3fb1aeacc4948b961ce Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Mon, 12 Feb 2024 09:57:36 -0500 Subject: [PATCH 2/2] Update alignment.py --- nibabies/workflows/bold/alignment.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nibabies/workflows/bold/alignment.py b/nibabies/workflows/bold/alignment.py index 8c81133a..55f38f39 100644 --- a/nibabies/workflows/bold/alignment.py +++ b/nibabies/workflows/bold/alignment.py @@ -61,9 +61,7 @@ def init_subcortical_rois_wf(*, name="subcortical_rois_wf"): # 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"