Commit 0910b01b authored by 3Yan's avatar 3Yan

Fix in annotation sequence

parent ba099848
......@@ -12,7 +12,7 @@ from . import zcetools
from . import zcetools_help
__version__ = "0.0.16"
__version__ = "0.0.17"
__all__ = ['config', 'datatools', 'docks', 'drltools', 'filetools',
......@@ -349,11 +349,11 @@ def ann_spec(ms_spec, msdata, ann_limit=0.01):
reduced to a representation of the important ones by the sub_peaks
def sub_peaks(peakz, hardpeaks, xrange, yrange, coef_x=10, coef_y=10):
def sub_peaks(peakz, hardpeaks, xrange, yrange, coef_x=15, coef_y=20):
"""Returns reasonable subselection of local maximas"""
hardxy = np.array([i.xy for i in hardpeaks], dtype=[
('x', np.float32), ('y', np.float32)])
sort_peaks = np.flipud(np.sort(np.array(peakz))).copy()
sort_peaks = np.flipud(np.sort(np.array(peakz), order='y')).copy()
red_x = xrange / coef_x
red_y = yrange / coef_y
big_peaks = np.array([], dtype=[('x', np.float32), ('y', np.float32)])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment