From ee45850cc21f95b9aa06a4233ea20adc93e09936 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Fri, 16 Jun 2023 18:26:38 +0200 Subject: [PATCH] Adds plot_exec_log in test --- ohmpi/plots.py | 2 -- ohmpi/utils.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ohmpi/plots.py b/ohmpi/plots.py index 34df5346..aab5d0e5 100644 --- a/ohmpi/plots.py +++ b/ohmpi/plots.py @@ -6,11 +6,9 @@ import matplotlib def plot_exec_log(exec_log,names=None,last_session=True): # TODO: select session id instead of last session (if -1 : last) time, process_id, tag, msg, session = parse_log(exec_log) - print(session) if last_session: time, process_id, tag, msg = time[session==max(session)], process_id[session==max(session)], tag[session==max(session)], msg[session==max(session)] events = msg[tag == 'EVENT'] - print(time) category, name, state, time = np.empty(events.shape[0]).astype(str), np.empty(events.shape[0]).astype(str), \ np.empty(events.shape[0]).astype(str), np.empty(events.shape[0]).astype(str) diff --git a/ohmpi/utils.py b/ohmpi/utils.py index fe9487a8..483e4daa 100644 --- a/ohmpi/utils.py +++ b/ohmpi/utils.py @@ -64,7 +64,6 @@ def change_config(config_file, verbose=True): def parse_log(log): - print(log) msg_started = False msg_tmp = '' s = 0 @@ -82,7 +81,7 @@ def parse_log(log): session.append(s) elif "{" in line or msg_started: msg_tmp = msg_tmp + line - print(msg_tmp) + # print(msg_tmp) msg_started = True if "}" in line: msg[-1] = msg[-1] + msg_tmp -- GitLab