Skip to content

Commit

Permalink
Address style issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Aug 9, 2024
1 parent 131b085 commit b30588c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qsirecon/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _bids_filter(value, parser):
parser.add_argument(
"analysis_level",
choices=["participant"],
help='Processing stage to be run, only "participant" in the case of ' "QSIRecon (for now).",
help='Processing stage to be run, only "participant" in the case of QSIRecon (for now).',
)

g_bids = parser.add_argument_group("Options for filtering BIDS queries")
Expand Down
1 change: 0 additions & 1 deletion qsirecon/cli/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def build_workflow(config_file, exec_mode, retval):
from .. import config
from ..utils.misc import check_deps
from ..viz.reports import generate_reports
from ..workflows.base import init_qsirecon_wf
from ..workflows.recon import init_qsirecon_wf

config.load(config_file)
Expand Down
10 changes: 8 additions & 2 deletions qsirecon/interfaces/anatomical.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ def _run_interface(self, runtime):
"%s/sub-%s*_from-T*w_to-MNI152NLin2009cAsym_mode-image_xfm.h5" % (anat_root, sub),
)
if not self.inputs.infant_mode:
self._results["template_image"] = pkgrf("qsirecon", "data/mni_1mm_t1w_lps_brain.nii.gz")
self._results["template_image"] = pkgrf(
"qsirecon",
"data/mni_1mm_t1w_lps_brain.nii.gz",
)
else:
self._results["template_image"] = pkgrf(
"qsirecon", "data/mni_1mm_t1w_lps_brain_infant.nii.gz"
Expand Down Expand Up @@ -510,7 +513,10 @@ def _run_interface(self, runtime):
if self.inputs.template_name in KNOWN_TEMPLATES or self.inputs.infant_mode:
if not self.inputs.infant_mode:
ref_img = pkgr("qsirecon", "data/mni_1mm_%s_lps.nii.gz" % contrast_name)
ref_img_brain = pkgr("qsirecon", "data/mni_1mm_%s_lps_brain.nii.gz" % contrast_name)
ref_img_brain = pkgr(
"qsirecon",
"data/mni_1mm_%s_lps_brain.nii.gz" % contrast_name,
)
ref_img_mask = pkgr("qsirecon", "data/mni_1mm_t1w_lps_brainmask.nii.gz")
else:
ref_img = pkgr("qsirecon", "data/mni_1mm_%s_lps_infant.nii.gz" % contrast_name)
Expand Down

0 comments on commit b30588c

Please sign in to comment.