From 0eaf17b9bb05a2c905e3a25b688bd1d206a5f11f Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Tue, 20 Jun 2023 17:46:57 +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 13c2e7cb..9bd16384 100644 --- a/ohmpi/utils.py +++ b/ohmpi/utils.py @@ -76,7 +76,7 @@ def parse_log(log): msg.append(":".join(line.split(" | ")[2].split(":")[1:])) tag.append(line.split(" | ")[2].split(":")[0]) print(i, line) - if tag[i] == 'INFO': + if tag[-1] == 'INFO': if 'NEW SESSION' in msg[i]: s += 1 session.append(s) -- GitLab