From 6d892167ef8b05f3c568dab3a89e52abedeb3684 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Tue, 20 Jun 2023 17:48:32 +0200 Subject: [PATCH] Investigates tag[i] error --- ohmpi/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohmpi/utils.py b/ohmpi/utils.py index 9bd16384..b2986944 100644 --- a/ohmpi/utils.py +++ b/ohmpi/utils.py @@ -77,7 +77,7 @@ def parse_log(log): tag.append(line.split(" | ")[2].split(":")[0]) print(i, line) if tag[-1] == 'INFO': - if 'NEW SESSION' in msg[i]: + if 'NEW SESSION' in msg[-1]: s += 1 session.append(s) elif "{" in line or msg_started: -- GitLab