From ab5bdcf692f143a8391f91c67695c3822d1492da Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Mon, 19 Jun 2023 15:10:46 +0200 Subject: [PATCH] Fix reference_location filled into SubarrayDescription --- src/ctapipe_io_lst/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ctapipe_io_lst/__init__.py b/src/ctapipe_io_lst/__init__.py index 0b1e05d0..d763b0e2 100644 --- a/src/ctapipe_io_lst/__init__.py +++ b/src/ctapipe_io_lst/__init__.py @@ -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, ) @@ -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 @@ -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