Skip to content

Commit ab0bba7

Browse files
authored
Merge pull request #2816 from satra/fix/profiler
[FIX] Indices were swapped for memory and cpu profile data
2 parents 35b58cd + fc9ff47 commit ab0bba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/base/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ def run(self, cwd=None, ignore_exception=None, **inputs):
563563
vals = np.loadtxt(mon_sp.fname, delimiter=',')
564564
if vals.size:
565565
vals = np.atleast_2d(vals)
566-
runtime.mem_peak_gb = vals[:, 1].max() / 1024
567-
runtime.cpu_percent = vals[:, 2].max()
566+
runtime.mem_peak_gb = vals[:, 2].max() / 1024
567+
runtime.cpu_percent = vals[:, 1].max()
568568

569569
runtime.prof_dict = {
570570
'time': vals[:, 0].tolist(),

0 commit comments

Comments
 (0)