Skip to content

Commit f8d8ec1

Browse files
committed
Try a different approach for the circularity issue.
1 parent ea2aea7 commit f8d8ec1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

heudiconv/main.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,14 @@ def workflow(*, dicom_dir_template=None, files=None, subjs=None,
283283

284284
# processed_studydirs = set()
285285

286+
locator_manual, session_manual = locator, session
286287
for (locator, session, sid), files_or_seqinfo in study_sessions.items():
287288

288289
# Allow for session to be overloaded from command line
289-
if session is not None:
290-
session = session
291-
if locator is not None:
292-
locator = locator
290+
if session_manual is not None:
291+
session = session_manual
292+
if locator_manual is not None:
293+
locator = locator_manual
293294
if not len(files_or_seqinfo):
294295
raise ValueError("nothing to process?")
295296
# that is how life is ATM :-/ since we don't do sorting if subj

0 commit comments

Comments
 (0)