Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dynvision/runtime/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ def save_results(self, model: pl.LightningModule, precision: int = 16) -> None:
del results_df
except Exception as e:
logger.error(f"Failed to save test results: {e}")
# Don't silently swallow the error - a partial/corrupt or missing
# test_outputs.csv must fail the job so Snakemake reruns it,
# instead of being picked up as valid input by downstream
# processing steps (mirrors the response-saving error handling below).
raise

# Save model responses (tensors)
try:
Expand Down
Loading