Skip to content

Commit 6b0fbaa

Browse files
committed
Merge pull request #1433 from akeshavan/segstats
fix: segstats avgwf_txt_file can be a bool without error
2 parents cbd55e2 + 0fd5842 commit 6b0fbaa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/interfaces/freesurfer/model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,9 @@ def _list_outputs(self):
752752

753753
def _format_arg(self, name, spec, value):
754754
if name in ('summary_file', 'avgwf_txt_file'):
755-
if not os.path.isabs(value):
756-
value = os.path.join('.', value)
755+
if not isinstance(value, bool):
756+
if not os.path.isabs(value):
757+
value = os.path.join('.', value)
757758
if name in ['avgwf_txt_file', 'avgwf_file', 'sf_avg_file']:
758759
if isinstance(value, bool):
759760
fname = self._list_outputs()[name]

0 commit comments

Comments
 (0)