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

Update search_filters function to lstchain v0.10.5 #260

Merged
merged 4 commits into from
Dec 4, 2023
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions src/osa/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from lstchain.onsite import (find_systematics_correction_file,
find_time_calibration_file)
morcuended marked this conversation as resolved.
Show resolved Hide resolved
from lstchain.scripts.onsite.onsite_create_calibration_file import \
morcuended marked this conversation as resolved.
Show resolved Hide resolved
search_filter
find_filter_wheels
morcuended marked this conversation as resolved.
Show resolved Hide resolved

from osa.configs import options
from osa.configs.config import DEFAULT_CFG, cfg
Expand Down Expand Up @@ -142,7 +142,7 @@ def get_calibration_filename(run_id: int, prod_id: str) -> Path:
mongodb = cfg.get("database", "caco_db")
try:
# Cast run_id to int to avoid problems with numpy int64 encoding in MongoDB
options.filters = search_filter(int(run_id), mongodb)
options.filters = find_filter_wheels(int(run_id), mongodb)
except IOError:
log.warning("No filter information found in database. Assuming positions 52.")
options.filters = 52
Expand Down
Loading