Skip to content
Draft
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
16 changes: 12 additions & 4 deletions sotodlib/site_pipeline/update_det_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,18 @@ def run_match(runner: Runner, detset: str) -> bool:
else:
wafer_slot = None

match = run_match_aman(runner, aman, ds, wafer_slot=wafer_slot)
fpath = os.path.join(runner.match_dir, f"{ds}.h5")
match.save(fpath)
logger.info(f"Saved match to file: {fpath}")
try:
match = run_match_aman(runner, aman, ds, wafer_slot=wafer_slot)
fpath = os.path.join(runner.match_dir, f"{ds}.h5")
match.save(fpath)
logger.info(f"Saved match to file: {fpath}")
except Exception as e:
add_to_failed_cache(
runner.failed_detset_cache_path, ds, "MATCH_FAILED",
runner.cfg
)
logger.error(f"deset {ds} failed with {e}")
continue

return True

Expand Down