Skip to content

Commit

Permalink
fix bug when setting the filtering none
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Aug 26, 2024
1 parent 5f7df41 commit 333019d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/depiction/spectrum/peak_picking/findmf_peak_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ def pick_peaks(
area=self.area,
max_peaks=self.max_peaks,
)
return self.peak_filtering.filter_peaks(
spectrum_mz_arr=mz_arr,
spectrum_int_arr=int_arr,
peak_mz_arr=peak_mz_arr,
peak_int_arr=peak_int_arr,
)
if self.peak_filtering is not None:
return self.peak_filtering.filter_peaks(
spectrum_mz_arr=mz_arr,
spectrum_int_arr=int_arr,
peak_mz_arr=peak_mz_arr,
peak_int_arr=peak_int_arr,
)
else:
return peak_mz_arr, peak_int_arr

0 comments on commit 333019d

Please sign in to comment.