Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change name of the longterm script #98

Merged
merged 1 commit into from
Feb 2, 2022
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion cfg/sequencer.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ check_dl1: lstchain_check_dl1
dl1_to_dl2: lstchain_dl1_to_dl2

# Path to longterm dl1 script
longterm_check: /fefs/aswg/software/virtual_env/ctasoft/cta-lstchain/lstchain/scripts/longterm_dl1_check.py
longterm_check: lstchain_longterm_dl1_check

# To be set by the user
store_image_dl1ab: True
Expand Down
3 changes: 1 addition & 2 deletions osa/scripts/closer.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ def daily_longterm_cmd(parent_job_ids: List[str]) -> List[str]:
muons_dir = destination_dir("MUON", create_dir=False)
longterm_dir = Path(cfg.get("LST1", "LONGTERM_DIR")) / options.prod_id / nightdir
longterm_output_file = longterm_dir / f"DL1_datacheck_{nightdir}.h5"
longterm_script = cfg.get("lstchain", "longterm_check")

return [
"sbatch",
Expand All @@ -433,7 +432,7 @@ def daily_longterm_cmd(parent_job_ids: List[str]) -> List[str]:
"-o",
"log/longterm_daily_%j.log",
f"--dependency=afterok:{','.join(parent_job_ids)}",
longterm_script,
"lstchain_longterm_dl1_check",
f"--input-dir={dl1_dir}",
f"--output-file={longterm_output_file}",
f"--muons-dir={muons_dir}",
Expand Down
2 changes: 1 addition & 1 deletion osa/scripts/tests/test_osa_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def test_daily_longterm_cmd():
"-o",
"log/longterm_daily_%j.log",
"--dependency=afterok:12345,54321",
"/fefs/aswg/software/virtual_env/ctasoft/cta-lstchain/lstchain/scripts/longterm_dl1_check.py",
"lstchain_longterm_dl1_check",
"--input-dir=test_osa/test_files0/DL1/20200117/v0.1.0/tailcut84",
"--output-file=test_osa/test_files0/OSA/DL1DataCheck_LongTerm/v0.1.0/20200117/DL1_datacheck_20200117.h5",
"--muons-dir=test_osa/test_files0/DL1/20200117/v0.1.0",
Expand Down