Skip to content

Commit

Permalink
Merge pull request #189 from cta-observatory/fix_reference_location
Browse files Browse the repository at this point in the history
Fix reference_location filled into SubarrayDescription
  • Loading branch information
maxnoe authored Jun 19, 2023
2 parents bf9fb19 + ab5bdcf commit 61c328f
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit 61c328f

Please sign in to comment.