Commit becd497b authored by Philipp Oleynik's avatar Philipp Oleynik
Browse files

stash back

parent c53c8530
......@@ -290,6 +290,7 @@ class Sixs:
adc_8 = self.logbit11to8(adc11=int(adc_11))
return int(round(adc_8)) // 4 if adc_8 >= 0 else 0
else:
energy = np.array(energy)
energy[energy < self.side_threshold] = 0
x = np.maximum(self.side_cal_intercept_high[side] + np.multiply(self.side_cal_slope_high[side], energy),
self.side_cal_intercept_low[side] + np.multiply(self.side_cal_slope_low[side], energy))
......
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