Skip to content

Commit 772a912

Browse files
committed
Minor, cleaning up commented lines in Spectrum
1 parent 1bb71e7 commit 772a912

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/Spectrum.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ def PadSpectrum(self, pad_length, pad_value=0, pad_side='left'):
184184
return EELSSpectrum(padded, SpectrumRange=padded_range, dispersion=self.dispersion, ZLP=self.ZLP, units=self.units)
185185

186186
def FindFW(self, intensityfraction):
187-
# intensity_norm = self.intensity.Normalize().intensity
188187
lefttail = self.intensity[:self.ZLP][::-1]
189188
diff1 = lefttail - intensityfraction*self.intensity[self.ZLP]
190189
left_index_1 = np.argmax(np.diff(np.sign(diff1)) != 0)
@@ -232,12 +231,8 @@ def eVSlice(self, starteV, stopeV):
232231
self.intensity,
233232
[starteV, stopeV],
234233
self.SpectrumRange)
235-
# startchannel = int(round(starteV / self.dispersion + self.ZLP))
236-
# stopchannel = int(round(stopeV / self.dispersion + self.ZLP))
237-
# sliced = self.intensity[startchannel:stopchannel]
238234
return sliced
239235

240-
import matplotlib.pyplot as plt
241236
#Richardson-Lucy algorithm
242237
def RL(iterations, PSF, Spec):
243238
RL4 = Spec.copy()

0 commit comments

Comments
 (0)