Skip to content

Commit 2737705

Browse files
committed
Improve runtime reporting
1 parent b25b2ff commit 2737705

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "simod"
7-
version = "5.1.3"
7+
version = "5.1.4"
88
authors = [
99
"Ihar Suvorau <ihar.suvorau@gmail.com>",
1010
"David Chapela <david.chapela@ut.ee>",

src/simod/simod.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,5 +405,12 @@ def _export_runtimes(
405405
file_path: Path,
406406
runtimes: RuntimeMeter
407407
):
408-
with open(file_path, "w") as f:
409-
json.dump(runtimes.runtimes, f)
408+
with open(file_path, "w") as file:
409+
json.dump(
410+
runtimes.runtimes | {'explanation': f"Add '{RuntimeMeter.PREPROCESSING}' with '{RuntimeMeter.TOTAL}' "
411+
f"for the runtime of the entire SIMOD pipeline and preprocessing "
412+
f"stage. '{RuntimeMeter.EVALUATION}', if reported, should be left out "
413+
f"as it measures the quality assessment of the final BPS model (i.e., "
414+
f"it is not part of the discovery process."},
415+
file
416+
)

0 commit comments

Comments
 (0)