Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Mar 7, 2025
1 parent 21f43f0 commit 2cc7f86
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions quantmsutils/mzml/mzml_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ def consumeSpectrum(self, spectrum):
The spectrum object to process.
"""

peaks = spectrum.get_peaks() # Get the peaks for the spec spectrum
mz_array, intensity_array = (
peaks[0],
peaks[1],
) # Split the peaks into mz and intensity arrays
mz_array, intensity_array = spectrum.get_peaks() # Split the peaks into mz and intensity arrays
peak_per_ms = len(mz_array) # Get the number of peaks in the spectrum
base_peak_intensity = (
float(np.max(intensity_array)) if peak_per_ms > 0 else None
Expand Down

0 comments on commit 2cc7f86

Please sign in to comment.