From 4048637603d926c5d09a5f5814a36522bdefa890 Mon Sep 17 00:00:00 2001 From: "Martindale, Nathan" Date: Thu, 5 Oct 2023 10:10:41 -0400 Subject: [PATCH] Add guard to report generation in map mode Fixes #88 --- curifactory/manager.py | 2 +- test/examples/experiments/basic.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/curifactory/manager.py b/curifactory/manager.py index 14eef0c..9684644 100644 --- a/curifactory/manager.py +++ b/curifactory/manager.py @@ -565,7 +565,7 @@ def unlock(self): def generate_report(self): """Output report files to a run-specific report folder, the reports/_latest, and the store-full folder if applicable.""" - if self.dry: + if self.dry or self.map_mode: return logging.info("Generating report...") diff --git a/test/examples/experiments/basic.py b/test/examples/experiments/basic.py index 74eead1..992d952 100644 --- a/test/examples/experiments/basic.py +++ b/test/examples/experiments/basic.py @@ -14,3 +14,5 @@ def run(argsets, manager: ArtifactManager): for argset in argsets: output = pipeline.run(argset) print(output) + + manager.generate_report()