From 8730b3a4b99a8050f59268646442c92d448adde0 Mon Sep 17 00:00:00 2001 From: kiene Date: Tue, 9 May 2023 16:33:14 +0200 Subject: [PATCH] fix log file selection for ISM+ modes --- scripts/pyivastest/IvasModeAnalyzer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/pyivastest/IvasModeAnalyzer.py b/scripts/pyivastest/IvasModeAnalyzer.py index 94e2646684..7e6d40b2e5 100644 --- a/scripts/pyivastest/IvasModeAnalyzer.py +++ b/scripts/pyivastest/IvasModeAnalyzer.py @@ -187,8 +187,9 @@ class IvasModeAnalyzer(IvasModeCollector): all_log_files = os.listdir(log_dir) for mode in self.flat_mode_list: for f in all_log_files: + search_string = re.escape("_{}".format(mode)) if ( - re.search("_{}".format(mode), f) + re.search(search_string, f) and os.path.splitext(f)[1] == LOG_FILE_EXT ): # this is a log file belonging to the ivas_format -- GitLab