Skip to content

Commit

Permalink
replaced RPI to take in config value in few more places
Browse files Browse the repository at this point in the history
  • Loading branch information
birajstha committed Oct 2, 2024
1 parent 70ec24b commit c593895
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CPAC/anat_preproc/lesion_preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import nipype.interfaces.utility as util

from CPAC.pipeline import nipype_pipeline_engine as pe
from CPAC.utils.configuration import Configuration as cfg
from CPAC.utils.interfaces import Function


Expand Down Expand Up @@ -133,7 +134,7 @@ def create_lesion_preproc(wf_name="lesion_preproc"):
mem_x=(0.0115, "in_file", "t"),
)

lesion_reorient.inputs.orientation = "RPI"
lesion_reorient.inputs.orientation = cfg.pipeline_setup["desired_orientation"]
lesion_reorient.inputs.outputtype = "NIFTI_GZ"

preproc.connect(lesion_deoblique, "out_file", lesion_reorient, "in_file")
Expand Down
2 changes: 1 addition & 1 deletion CPAC/func_preproc/func_preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ def bold_mask_anatomical_refined(wf, cfg, strat_pool, pipe_num, opt=None):
mem_x=(0.0115, "in_file", "t"),
)

func_reorient.inputs.orientation = "RPI"
func_reorient.inputs.orientation = cfg.pipeline_setup["desired_orientation"]
func_reorient.inputs.outputtype = "NIFTI_GZ"

wf.connect(func_deoblique, "out_file", func_reorient, "in_file")
Expand Down

0 comments on commit c593895

Please sign in to comment.