Skip to content

Commit e230794

Browse files
committed
update history files only if .closed file does not exist
1 parent bac778e commit e230794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/osa/scripts/gain_selection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ def apply_gain_selection(date: datetime, start: int, end: int, tool: str = None,
291291
# Avoid running jobs while it is still night time
292292
wait_for_daytime(start, end)
293293

294-
launch_gainsel_for_data_run(date, run, output_dir, r0_dir, log_dir, tool, simulate)
294+
if not is_closed(date, run["run_id"]):
295+
launch_gainsel_for_data_run(date, run, output_dir, r0_dir, log_dir, tool, simulate)
295296

296297
calib_runs = summary_table[summary_table["run_type"] != "DATA"]
297298
log.info(f"Found {len(calib_runs)} NO-DATA runs")

0 commit comments

Comments
 (0)