From 5a42e7b899a8e513dc82f17d347f1c40b9cf44d8 Mon Sep 17 00:00:00 2001 From: Tjark Miener Date: Wed, 26 Feb 2025 20:54:09 +0000 Subject: [PATCH] remove transformation because geom already in camera frame --- ctlearn/tools/predict_LST1.py | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/ctlearn/tools/predict_LST1.py b/ctlearn/tools/predict_LST1.py index 7c51c73..9a3fd28 100644 --- a/ctlearn/tools/predict_LST1.py +++ b/ctlearn/tools/predict_LST1.py @@ -192,15 +192,6 @@ class LST1PredictionTool(Tool): ), ).tag(config=True) - transform_to_CameraFrame = Bool( - default_value=True, - allow_none=False, - help=( - "Transform the camera geometry to the CameraFrame. " - "Needed if training was done in this frame." - ), - ).tag(config=True) - output_path = Path( default_value="./output.dl2.h5", allow_none=False, @@ -629,7 +620,7 @@ def start(self): ) if self.load_cameradirection_model_from is not None: direction_table = example_identifiers.copy() - # Set the telescope pointing of the SkyOffsetSeparation tranform to the fix pointing + # Set the telescope position tel_ground_frame = self.subarray.tel_coords[ self.subarray.tel_ids_to_indices(self.tel_id) ] @@ -784,16 +775,10 @@ def _create_subarray(self, tel_id=1, reference_location=None): pix_area=u.Quantity(cam_geom_table.cols.pix_area[:], u.cm**2), pix_rotation=Angle(100.893, u.deg), cam_rotation=Angle(0, u.deg), - frame = EngineeringCameraFrame(focal_length=ctapipe_io_lst.OPTICS.effective_focal_length), + frame = CameraFrame(focal_length=ctapipe_io_lst.OPTICS.effective_focal_length), ) - # Needs to be renamed because the ImageMapper smooths the pixel positions + # Needs to be renamed because the ImageMapper smooths the pixel positions camera_geom.name = "RealLSTCam" - if self.transform_to_CameraFrame: - camera_geom = camera_geom.transform_to( - CameraFrame( - focal_length=ctapipe_io_lst.OPTICS.effective_focal_length - ) - ) # get info on the camera readout: ( daq_time_per_sample,