Skip to content

Commit 9d194e4

Browse files
committed
Fix #1087
1 parent 2b6921e commit 9d194e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/dcmstack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _get_out_path(self, meta, idx=None):
8585

8686
# now, mkdir -p $out_path
8787
try:
88-
op.makedirs(out_path)
88+
os.makedirs(out_path)
8989
except OSError as exc: # Python >2.5
9090
if exc.errno == errno.EEXIST and op.isdir(out_path):
9191
pass
@@ -250,13 +250,13 @@ def _outputs(self):
250250
outputs.add_trait(out_name, traits.Any)
251251
undefined_traits[out_name] = Undefined
252252
outputs.trait_set(trait_change_notify=False, **undefined_traits)
253-
#Not sure why this is needed
253+
# Not sure why this is needed
254254
for out_name in self._meta_keys.values():
255255
_ = getattr(outputs, out_name)
256256
return outputs
257257

258258
def _run_interface(self, runtime):
259-
#If the 'meta_keys' input is a list, covert it to a dict
259+
# If the 'meta_keys' input is a list, covert it to a dict
260260
self._make_name_map()
261261
nw = NiftiWrapper.from_filename(self.inputs.in_file)
262262
self.result = {}

0 commit comments

Comments
 (0)