Skip to content

Commit

Permalink
Merge pull request #260 from cta-observatory/update_function
Browse files Browse the repository at this point in the history
Update search_filters function to lstchain v0.10.5
  • Loading branch information
morcuended authored Dec 4, 2023
2 parents dde0eb7 + c8ead82 commit f19d22b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/osa/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
import lstchain
from astropy.table import Table
from lstchain.onsite import (find_systematics_correction_file,
find_time_calibration_file)
from lstchain.scripts.onsite.onsite_create_calibration_file import \
search_filter
find_time_calibration_file,
find_filter_wheels)

from osa.configs import options
from osa.configs.config import DEFAULT_CFG, cfg
Expand Down Expand Up @@ -142,7 +141,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 f19d22b

Please sign in to comment.