Skip to content

[ENH] Issue 3345: Adding FreeSurfer longitudinal interfaces #3529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,11 @@
"affiliation": "MIT, HMS",
"name": "Ghosh, Satrajit",
"orcid": "0000-0002-5312-6729"
},
{
"affiliation": "Department of Neurosurgery, Medical College of Wisconsin",
"name": "Espana, Lezlie",
"orcid": "0000-0002-6466-4653"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to modify the zenodo file within its own commit. Also, I believe you should keep Satra as last author.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh of course, my mistake.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem

}
],
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions nipype/interfaces/freesurfer/longitudinal.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def _gen_filename(self, name):
return None

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

if isdefined(self.inputs.subjects_dir):
subjects_dir = self.inputs.subjects_dir
Expand All @@ -430,7 +430,7 @@ def _list_outputs(self):

def _is_resuming(self):
subjects_dir = self.inputs.subjects_dir
subject_id = f"{self.inputs.long_id[0]}.long{self.inputs.long_id[1]}"
subject_id = f"{self.inputs.long_id}.long{self.inputs.base_id}"
if not isdefined(subjects_dir):
subjects_dir = self._gen_subjects_dir()
if os.path.isdir(os.path.join(subjects_dir, subject_id, "mri")):
Expand Down