Skip to content

Commit 920efe7

Browse files
committed
docstring
1 parent b3e19ac commit 920efe7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

lstchain/reco/r0_to_dl1.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ def r0_to_dl1(
244244
if not is_simu:
245245

246246
# TODO : add DRS4 calibration config in config file, read it and pass it here
247-
r0_r1_calibrator = LSTR0Corrections(
248-
pedestal_path=pedestal_path, tel_id=1,
249-
)
247+
r0_r1_calibrator = LSTR0Corrections(pedestal_path=pedestal_path, tel_id=1)
250248

251249
# all this will be cleaned up in a next PR related to the configuration files
252250

@@ -773,9 +771,17 @@ def rescale_dl1_charge(event, scaling_factor):
773771

774772
def r0_dl1_muon_analysis(event, telescope_id, r1_dl1_calibrator_for_muon_rings, subarray, muon_parameters, dragon_time):
775773
"""
774+
Muon analysis in the stage r0 to dl1.
775+
Fills the `muon_parameters` table.
776776
777-
Returns
778-
-------
777+
Parameters
778+
----------
779+
event: `ctapipe.containers.DataContainer`
780+
telescope_id: int
781+
r1_dl1_calibrator_for_muon_rings: `LSTCameraCalibrator`
782+
subarray: `ctapipe.instrument.subarray.SubarrayDescription`
783+
muon_parameters: dict `lstchain.image.muon.create_muon_table`
784+
dragon_time: `astropy.Quantity`
779785
780786
"""
781787
# minimum number of pe in a pixel to include it
@@ -788,7 +794,7 @@ def r0_dl1_muon_analysis(event, telescope_id, r1_dl1_calibrator_for_muon_rings,
788794

789795
bad_pixels = event.mon.tel[telescope_id].calibration.unusable_pixels[0]
790796
# Set to 0 unreliable pixels:
791-
image = event.dl1.tel.image*(~bad_pixels)
797+
image = event.dl1.tel[telescope_id].image*(~bad_pixels)
792798

793799
# process only promising events, in terms of # of pixels with large signals:
794800
if tag_pix_thr(image):

0 commit comments

Comments
 (0)