From 08d58557dfd71c4d7353061a9f57ebd32be5d333 Mon Sep 17 00:00:00 2001 From: Florez Ospina Juan Felipe Date: Tue, 28 May 2024 08:57:57 +0200 Subject: [PATCH] Fixed bug that didnot allowed analythical_methods composite keywords (e.g., ICAD/HONO) to be matched in intrument configurations. --- src/g5505_file_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g5505_file_reader.py b/src/g5505_file_reader.py index 2d06f0d..2b6c815 100644 --- a/src/g5505_file_reader.py +++ b/src/g5505_file_reader.py @@ -117,7 +117,7 @@ def read_txt_files_as_dict(filename : str ): except yaml.YAMLError as exc: print(exc) # Verify if file can be read by available intrument configurations. - if not any(key in filename for key in config_dict.keys()): + if not any(key in filename.replace(os.sep,'/') for key in config_dict.keys()): return {}