Skip to content

Commit 43f32d5

Browse files
committed
fix initialization of NipypeConfig
1 parent 8a5e7a3 commit 43f32d5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

nipype/utils/config.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,11 @@ def __init__(self, *args, **kwargs):
9999

100100
for option in CONFIG_DEPRECATIONS:
101101
for section in ['execution', 'logging']:
102-
if self._config.has_option(section, option):
102+
if self.has_option(section, option):
103103
new_option = CONFIG_DEPRECATIONS[option][0]
104-
if not self._config.has_option(section, new_option):
104+
if not self.has_option(section, new_option):
105105
# Warn implicit in get
106-
self._config.set(section, new_option,
107-
self._config.get(option))
106+
self.set(section, new_option, self.get(section, option))
108107

109108
def set_default_config(self):
110109
self._config.readfp(StringIO(default_cfg))

0 commit comments

Comments
 (0)