Skip to content

Commit

Permalink
adding cfg as parameter in lesion_preproc
Browse files Browse the repository at this point in the history
  • Loading branch information
birajstha committed Oct 3, 2024
1 parent c593895 commit 9095825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Moved `pygraphviz` from requirements to `graphviz` optional dependencies group.
- Fixed-orientation-parameter `RPI` in resolve_resolution `freesurfer_fs_brain_connector`, `anatomical_init_T1`, `anatomical_init_T2`, `func_reorient` to take in whatever is set in the config `desired_orientation` field.
- Fixed-orientation-parameter `RPI` in resolve_resolution `freesurfer_fs_brain_connector`, `anatomical_init_T1`, `lesion_preproc`, `anatomical_init_T2`, `func_reorient` to take in whatever is set in the config `desired_orientation` field.

### Fixed

Expand Down
3 changes: 1 addition & 2 deletions CPAC/anat_preproc/lesion_preproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
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 @@ -59,7 +58,7 @@ def inverse_lesion(lesion_path):
return lesion_out


def create_lesion_preproc(wf_name="lesion_preproc"):
def create_lesion_preproc(wf_name="lesion_preproc", cfg="RPI"):
"""Process lesions masks.
Lesion mask file is deobliqued and reoriented in the same way as the T1 in
Expand Down

0 comments on commit 9095825

Please sign in to comment.