Skip to content

Commit

Permalink
Add guard to report generation in map mode
Browse files Browse the repository at this point in the history
Fixes #88
  • Loading branch information
WarmCyan committed Oct 5, 2023
1 parent 80da3b7 commit 4048637
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion curifactory/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")

Expand Down
2 changes: 2 additions & 0 deletions test/examples/experiments/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ def run(argsets, manager: ArtifactManager):
for argset in argsets:
output = pipeline.run(argset)
print(output)

manager.generate_report()

0 comments on commit 4048637

Please sign in to comment.