Commit 710c59ac authored by bliss administrator's avatar bliss administrator
Browse files

bug fix in det_dt_calib - det_max_counts is per seconds value

parent 0d054506
......@@ -112,9 +112,9 @@ class DeadTimeCorrectionCalcCounterController(CalcCounterController):
det_dat = scan_d [det_raw.name]
mon_dat = scan_d [self.mon.name]
time_dat = scan_d [timer.name]
time_dat = scan_d [timer.name]
if (det_dat > self.det_max_counts).any():
if (det_dat > self.det_max_counts*itime).any():
print ("| DET. DEAD TIME CORRECTION -- WARNING -- SATURATION. |")
print ("| Please try to change the energy of the spectrometer |")
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment