From 6a4f825b8b1729a69d2f181186d632280a10b058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6nig?= Date: Tue, 2 Apr 2024 23:37:22 +0200 Subject: [PATCH] updated logging --- src/sbmlsim/experiment/experiment.py | 6 +----- src/sbmlsim/report/experiment_report.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/sbmlsim/experiment/experiment.py b/src/sbmlsim/experiment/experiment.py index f591935f..34811d24 100644 --- a/src/sbmlsim/experiment/experiment.py +++ b/src/sbmlsim/experiment/experiment.py @@ -388,7 +388,6 @@ def run( """Execute given experiment and store results.""" # run simulations (sets self._results) - logger.info("_run_tasks") self._run_tasks( simulator, reduced_selections=reduced_selections ) @@ -404,7 +403,7 @@ def run( else: if not Path.exists(output_path): Path.mkdir(output_path, parents=True) - logger.info(f"'output_path' created: '{output_path}'") + logger.debug(f"'output_path' created: '{output_path}'") # save outputs self.save_datasets(output_path) @@ -451,10 +450,7 @@ def _run_tasks(self, simulator, reduced_selections: bool = True): # load model in simulator model: AbstractModel = self._models[model_id] - # logger.info(f"set model: {type(model)}: {model=}") simulator.set_model(model=model) - - logger.info("set selections") if reduced_selections: # set selections based on data selections = {"time"} diff --git a/src/sbmlsim/report/experiment_report.py b/src/sbmlsim/report/experiment_report.py index b6dd725c..85e2c496 100644 --- a/src/sbmlsim/report/experiment_report.py +++ b/src/sbmlsim/report/experiment_report.py @@ -193,5 +193,5 @@ def write_report(filename: str, context: Dict, template_str: str) -> Path: context=context, template_str=f"index.{suffix}" ) - logger.info(f"Report created: 'file://{output_path}'") + logger.info(f"report created: file://{output_path}'") return output_path