Skip to content

Commit

Permalink
Update search_filters function to lstchain v0.10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
marialainez committed Dec 4, 2023
1 parent dde0eb7 commit b3f23d6
Showing 1 changed file with 2 additions and 2 deletions.
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)
from lstchain.scripts.onsite.onsite_create_calibration_file import \
search_filter
find_filter_wheels

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

0 comments on commit b3f23d6

Please sign in to comment.