Skip to content

Commit 6971865

Browse files
committed
Update longitudinal outputs to match separation of ids.
1 parent 6a294be commit 6971865

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: .zenodo.json

+5
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,11 @@
890890
"affiliation": "MIT, HMS",
891891
"name": "Ghosh, Satrajit",
892892
"orcid": "0000-0002-5312-6729"
893+
},
894+
{
895+
"affiliation": "Department of Neurosurgery, Medical College of Wisconsin",
896+
"name": "Espana, Lezlie",
897+
"orcid": "0000-0002-6466-4653"
893898
}
894899
],
895900
"keywords": [

Diff for: nipype/interfaces/freesurfer/longitudinal.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def _gen_filename(self, name):
405405
return None
406406

407407
def _list_outputs(self):
408-
subject_id = f"{self.inputs.long_id[0]}.long.{self.inputs.long_id[1]}"
408+
subject_id = f"{self.inputs.long_id}.long.{self.inputs.base_id}"
409409

410410
if isdefined(self.inputs.subjects_dir):
411411
subjects_dir = self.inputs.subjects_dir
@@ -430,7 +430,7 @@ def _list_outputs(self):
430430

431431
def _is_resuming(self):
432432
subjects_dir = self.inputs.subjects_dir
433-
subject_id = f"{self.inputs.long_id[0]}.long{self.inputs.long_id[1]}"
433+
subject_id = f"{self.inputs.long_id}.long{self.inputs.base_id}"
434434
if not isdefined(subjects_dir):
435435
subjects_dir = self._gen_subjects_dir()
436436
if os.path.isdir(os.path.join(subjects_dir, subject_id, "mri")):

0 commit comments

Comments
 (0)