From fc9ff47ac692d8ca420a93e842e7983c0fbcef7e Mon Sep 17 00:00:00 2001 From: Satrajit Ghosh Date: Sat, 8 Dec 2018 22:08:45 -0500 Subject: [PATCH] fix: indices were swapped for memory and cpu --- nipype/interfaces/base/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nipype/interfaces/base/core.py b/nipype/interfaces/base/core.py index 5c62c82726..5f6d902f9c 100644 --- a/nipype/interfaces/base/core.py +++ b/nipype/interfaces/base/core.py @@ -563,8 +563,8 @@ def run(self, cwd=None, ignore_exception=None, **inputs): vals = np.loadtxt(mon_sp.fname, delimiter=',') if vals.size: vals = np.atleast_2d(vals) - runtime.mem_peak_gb = vals[:, 1].max() / 1024 - runtime.cpu_percent = vals[:, 2].max() + runtime.mem_peak_gb = vals[:, 2].max() / 1024 + runtime.cpu_percent = vals[:, 1].max() runtime.prof_dict = { 'time': vals[:, 0].tolist(),