From 09cb1a59c3d4d558c82ccddcb97ace3bda59497e Mon Sep 17 00:00:00 2001 From: pswain <peter.swain@ed.ac.uk> Date: Tue, 12 Dec 2023 11:15:47 +0000 Subject: [PATCH] bug(metadata): removed confusing Warning about missing .log files --- src/agora/io/metadata.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/agora/io/metadata.py b/src/agora/io/metadata.py index 5a31907..44e3d70 100644 --- a/src/agora/io/metadata.py +++ b/src/agora/io/metadata.py @@ -98,9 +98,6 @@ def find_file(root_dir, regex): if Path(f).name != "aliby.log" ] if len(file) == 0: - logging.getLogger("aliby").log( - logging.WARNING, "Metadata: No valid swainlab .log found." - ) return None elif len(file) > 1: print( @@ -124,9 +121,7 @@ def parse_logfiles( """ log_parser = Parser(log_grammar) acq_parser = Parser(acq_grammar) - # an example acq file is 'flavin_htb2_glucose_long_ramp_DelftAcq.txt' log_file = find_file(root_dir, "*log.txt") - # an example log file is 'flavin_htb2_glucose_long_ramp_Delftlog.txt' acq_file = find_file(root_dir, "*[Aa]cq.txt") # parse into a single dict parsed = {} -- GitLab