docs: update documentation files and fix linting issues
This commit is contained in:
@@ -395,8 +395,6 @@ class EnergyCalibrator:
|
||||
if best_pair is not None:
|
||||
ch_low, ch_high = best_pair
|
||||
e_min, e_max = min(known_energies), max(known_energies)
|
||||
gain = (ch_high - ch_low) / (e_max - e_min)
|
||||
intercept = ch_low - gain * e_min
|
||||
channel_to_energy[float(ch_low)] = e_min
|
||||
channel_to_energy[float(ch_high)] = e_max
|
||||
|
||||
|
||||
Reference in New Issue
Block a user