diff --git a/nipype/interfaces/freesurfer/preprocess.py b/nipype/interfaces/freesurfer/preprocess.py index 29961ee6ed..ffea9f04e5 100644 --- a/nipype/interfaces/freesurfer/preprocess.py +++ b/nipype/interfaces/freesurfer/preprocess.py @@ -1028,7 +1028,7 @@ def _prep_expert_file(self): contents = ''.join(lines) if not isdefined(self.inputs.xopts) and \ - self.get_expert_file() == contents: + self._get_expert_file() == contents: return ' -xopts-use' expert_fname = os.path.abspath('expert.opts')