Skip to content

Commit

Permalink
Merge pull request #1133 from cta-observatory/moralejo-patch-1
Browse files Browse the repository at this point in the history
Change way to access monitoring info in dl1 file
  • Loading branch information
moralejo authored Jul 7, 2023
2 parents 9f1e81a + 63d61ab commit 873d002
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lstchain/calib/camera/pixel_threshold_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def get_bias_and_std(dl1_file):
"""
with tables.open_file(dl1_file) as f:
ped = f.root[dl1_params_tel_mon_ped_key]
ped_charge_mean = np.array(ped.cols.charge_mean)
ped_charge_std = np.array(ped.cols.charge_std)
ped_charge_mean = ped.col('charge_mean')
ped_charge_std = ped.col('charge_std')
calib = f.root[dl1_params_tel_mon_cal_key]
dc_to_pe = np.array(calib.cols.dc_to_pe[ORIGINAL_CALIBRATION_ID])
dc_to_pe = calib.col('dc_to_pe')[ORIGINAL_CALIBRATION_ID]
ped_charge_mean_pe = ped_charge_mean * dc_to_pe
ped_charge_std_pe = ped_charge_std * dc_to_pe

Expand Down

0 comments on commit 873d002

Please sign in to comment.