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

DL1 datacheck PDF files are not being copied to webserver #253

Closed
morcuended opened this issue Oct 9, 2023 · 0 comments · Fixed by #254
Closed

DL1 datacheck PDF files are not being copied to webserver #253

morcuended opened this issue Oct 9, 2023 · 0 comments · Fixed by #254

Comments

@morcuended
Copy link
Member

morcuended commented Oct 9, 2023

lstosa/src/osa/paths.py

Lines 201 to 210 in c39febf

def datacheck_directory(data_type: str, date: str) -> Path:
"""Returns the path to the datacheck directory given the data type."""
if data_type in {"PEDESTAL", "CALIB"}:
directory = Path(cfg.get("LST1", f"{data_type}_DIR")) / date / "pro/log"
elif data_type == "DL1AB":
directory = destination_dir("DL1AB", create_dir=False)
elif data_type == "LONGTERM":
directory = Path(cfg.get("LST1", f"{data_type}_DIR")) / options.prod_id / date
else:
raise ValueError(f"Unknown data type: {data_type}")

copy_datacheck is currently not copying the PDF DL1 datacheck files to the web server. The path where those files are located in fefs has to be changed in this function (e.g. .../v0.10/tailcut84/datacheck).

Change 'DL1AB' to 'DATAECHECK' in that function and also here:

DATACHECK_FILE_PATTERNS = {
"PEDESTAL": "drs4*.pdf",
"CALIB": "calibration*.pdf",
"DL1AB": "datacheck_dl1*.pdf",
"LONGTERM": "DL1_datacheck_*.*",
}

@morcuended morcuended linked a pull request Oct 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant