Skip to content

Commit

Permalink
fix: save results as early as possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Apr 19, 2024
1 parent f1efbbb commit 2ed3627
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/snkf/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ def main_app(cfg: ConfigSnakeFMRI) -> None:
del zscore
gc.collect()

# 3. Clean up and saving
with PerfLogger(logger, name="Cleanup"):
with open("results.json", "w") as f:
json.dump(results, f, default=lambda o: str(o))
# 3. Clean up and saving
with PerfLogger(logger, name="Cleanup"):
with open("results.json", "w") as f:
json.dump(results, f, default=lambda o: str(o))

PerfLogger.recap(logger)

Expand Down

0 comments on commit 2ed3627

Please sign in to comment.