From bf76ce01e91f877875d660a466bacaf94e18d8b7 Mon Sep 17 00:00:00 2001 From: Mayeul Aubin Date: Mon, 30 Jun 2025 14:28:13 +0200 Subject: [PATCH] progress bar based on "step" in log files --- sbmy_control/low_level.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbmy_control/low_level.py b/sbmy_control/low_level.py index 5a32cdd..b5382c0 100644 --- a/sbmy_control/low_level.py +++ b/sbmy_control/low_level.py @@ -219,9 +219,9 @@ def get_progress_from_logfile(filename): with open(filename, "r") as f: lines = f.readlines() for line in lines: - if " operation " in line: + if "Step " in line: try: - splitted_line = line.split(" operation ")[1] + splitted_line = line.split("Step ")[1] splitted_line = splitted_line.split(":")[0] current_operation = int(splitted_line.split("/")[0]) total_operations = int(splitted_line.split("/")[1])