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

Allowing external algo to find trigger patch #134

Merged
merged 6 commits into from
Jul 9, 2024
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
Prev Previous commit
Merge branch 'master' into dbscan_output
  • Loading branch information
nietootein committed Jul 8, 2024
commit 4fc302675bb20af325e5703b06f2f0a24e51b903
8 changes: 3 additions & 5 deletions dl1_data_handler/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(

# Telescope pointings
self.telescope_pointings = {}
self.fix_pointing_alt, self.fix_pointing_az = None, None
self.fix_pointing = None
tel_id = None
if self.process_type == "Observation":
for tel_id in self.tel_ids:
Expand Down Expand Up @@ -166,10 +166,8 @@ def __init__(
# Set the telescope pointing of the SkyOffsetSeparation tranform to the fix pointing
if transforms is not None:
for transform in transforms:
if transform.name == "deltaAltAz":
transform.set_pointing(
self.fix_pointing_alt, self.fix_pointing_az
)
if transform.name == "SkyOffsetSeparation":
transform.set_pointing(self.fix_pointing)

# AI-based trigger system
self.trigger_settings = trigger_settings
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.