Skip to content

Commit

Permalink
lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcieslak committed Aug 16, 2024
1 parent 57f0464 commit 4ae6d5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qsirecon/workflows/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:

from ast import NotIn
import logging
from copy import deepcopy

Expand Down Expand Up @@ -67,17 +68,17 @@ def init_single_subject_json_report_wf(subject_id, name):
Directory in which to read and save derivatives
"""
raise NotImplementedError()
output_dir = config.execution.output_dir
if name in ("single_subject_wf", "single_subject_qsirecontest_wf"):
# for documentation purposes
subject_data = {
"t1w": ["/completely/made/up/path/sub-01_T1w.nii.gz"],
"dwi": ["/completely/made/up/path/sub-01_dwi.nii.gz"],
}
layout = None
LOGGER.warning("Building a test workflow")
else:
subject_data, layout = collect_data(output_dir, subject_id, bids_validate=False)
pass
dwi_files = subject_data["dwi"]
workflow = Workflow(name=name)
scans_iter = pe.Node(niu.IdentityInterface(fields=["dwi_file"]), name="scans_iter")
Expand Down

0 comments on commit 4ae6d5f

Please sign in to comment.