Skip to content
Snippets Groups Projects
Commit d08eb312 authored by Marko Mecina's avatar Marko Mecina
Browse files

return ADUs as int

parent 805dc77e
No related branches found
No related tags found
No related merge requests found
...@@ -583,9 +583,9 @@ def t_ccd_fee_deg_to_adu(t, ccd): ...@@ -583,9 +583,9 @@ def t_ccd_fee_deg_to_adu(t, ccd):
:return: :return:
""" """
if ccd == 2: if ccd == 2:
return (cal_pt2000(t) - FEE_CCD2TsA_offset) / FEE_CCD2TsA_gain return np.rint((cal_pt2000(t) - FEE_CCD2TsA_offset) / FEE_CCD2TsA_gain).astype(int)
elif ccd == 4: elif ccd == 4:
return (cal_pt2000(t) - FEE_CCD4TsB_offset) / FEE_CCD4TsB_gain return np.rint((cal_pt2000(t) - FEE_CCD4TsB_offset) / FEE_CCD4TsB_gain).astype(int)
else: else:
raise ValueError("CCD must be either 2 or 4!") raise ValueError("CCD must be either 2 or 4!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment