Skip to content

Commit

Permalink
updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskoenig committed Apr 2, 2024
1 parent 21480c8 commit 6a4f825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/sbmlsim/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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)
Expand Down Expand Up @@ -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"}
Expand Down
2 changes: 1 addition & 1 deletion src/sbmlsim/report/experiment_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6a4f825

Please sign in to comment.