From d9c88fd2a43fede1119bd1da36116dcb154acc4c Mon Sep 17 00:00:00 2001 From: AlessandroLovo Date: Tue, 31 Jan 2023 15:26:14 +0100 Subject: [PATCH] changed some logging levels --- PLASIM/Learn2_new.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PLASIM/Learn2_new.py b/PLASIM/Learn2_new.py index a1c87d6..5e14790 100755 --- a/PLASIM/Learn2_new.py +++ b/PLASIM/Learn2_new.py @@ -105,7 +105,7 @@ Final score of k_fold_cross_val Run pruned -42 Folder name of the run and progressive number among the scheduled runs +42 Folder name of the run Single run completes 44 Non default arguments of the run @@ -115,6 +115,8 @@ Skipping/rerunning already performed run Average score of the run +48 Progressive number among the scheduled runs + 49 All runs completed 50 logging.CRITICAL The program stops due to an error @@ -2655,9 +2657,9 @@ def run_multiple(self): logger.log(45, f"Starting {nruns} run{'' if nruns == 1 else 's'}") try: for i,kwargs in enumerate(self.scheduled_kwargs): - logger.log(42, f'Run {i+1}/{len(self.scheduled_kwargs)}') + logger.log(48, f'{HOSTNAME}: Run {i+1}/{nruns}') self._run(**kwargs) - logger.log(49, '\n\n\n\n\n\nALL RUNS COMPLETED\n\n') + logger.log(49, f'{HOSTNAME}: \n\n\n\n\n\nALL RUNS COMPLETED\n\n') finally: # remove telegram logger if th is not None: