Skip to content

Commit c945fd4

Browse files
Fix ValueError when using ResourceMonitor
- Add missing `items()` to unpack dictionary for iteration
1 parent f756b71 commit c945fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/base/support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __exit__(self, exc_type, exc_value, exc_tb):
8787
timediff.days * 86400 + timediff.seconds + timediff.microseconds / 1e6
8888
)
8989
# Collect monitored data
90-
for k, v in self._resmon.stop():
90+
for k, v in self._resmon.stop().items():
9191
setattr(self._runtime, k, v)
9292

9393
os.chdir(self._runtime.prevcwd)

0 commit comments

Comments
 (0)