|
33 | 33 | # 3rd party
|
34 | 34 | from chemistry_tools.formulae import Formula
|
35 | 35 | from domdf_python_tools.words import word_join
|
36 |
| -from pyms.BillerBiemann import get_maxima_indices, num_ions_threshold # type: ignore[import] |
37 |
| -from pyms.eic import ExtractedIntensityMatrix, build_extracted_intensity_matrix # type: ignore[import] |
38 |
| -from pyms.IntensityMatrix import IntensityMatrix # type: ignore[import] |
39 |
| -from pyms.Noise.Analysis import window_analyzer # type: ignore[import] |
40 |
| -from pyms.Peak import Peak # type: ignore[import] |
| 36 | +from pyms.BillerBiemann import get_maxima_indices, num_ions_threshold |
| 37 | +from pyms.eic import ExtractedIntensityMatrix, build_extracted_intensity_matrix |
| 38 | +from pyms.IntensityMatrix import IntensityMatrix |
| 39 | +from pyms.Noise.Analysis import window_analyzer |
| 40 | +from pyms.Peak import Peak |
41 | 41 |
|
42 | 42 | # this package
|
43 | 43 | from pyms_lc_esi.adducts import Adduct, get_adduct_spectra
|
@@ -185,7 +185,7 @@ def peak_finder(e_im: ExtractedIntensityMatrix, points: int = 3) -> Iterator[Pea
|
185 | 185 | peak.area, left_bound, right_bound = sum_area(apex_index, e_im)
|
186 | 186 |
|
187 | 187 | # Assign bounds to peak as offsets.
|
188 |
| - peak.bounds = [apex_index - left_bound, apex_index, right_bound - apex_index] |
| 188 | + peak.bounds = (apex_index - left_bound, apex_index, right_bound - apex_index) |
189 | 189 |
|
190 | 190 | if (right_bound - left_bound) > 3 and peak.area > 1000:
|
191 | 191 | # TODO: make 1000 dependent on data
|
|
0 commit comments