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

Fix reference_location filled into SubarrayDescription #189

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Changes from all commits
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
7 changes: 4 additions & 3 deletions src/ctapipe_io_lst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
parse_tib_10MHz_counter,
)
from .constants import (
HIGH_GAIN, LST_LOCATIONS, N_GAINS, N_PIXELS, N_SAMPLES, LST1_LOCATION, REFERENCE_LOCATION,
HIGH_GAIN, LST_LOCATIONS, N_GAINS, N_PIXELS, N_SAMPLES, REFERENCE_LOCATION,
PixelStatus, TriggerBits,
)

Expand Down Expand Up @@ -367,7 +367,8 @@ def datalevels(self):
@staticmethod
def create_subarray(tel_id=1, reference_location=None):
"""
Obtain the subarray from the EventSource
Obtain a single-lst subarray description

Returns
-------
ctapipe.instrument.SubarrayDescription
Expand Down Expand Up @@ -408,7 +409,7 @@ def create_subarray(tel_id=1, reference_location=None):
name=f"LST-{tel_id} subarray",
tel_descriptions=tel_descriptions,
tel_positions=tel_positions,
reference_location=LST1_LOCATION,
reference_location=reference_location,
)

return subarray
Expand Down
Loading