Commit 26dd2ab0 authored by Yan's avatar Yan
Browse files

fixed error caused by renaming

parent 8be8fa29
......@@ -184,8 +184,8 @@ def ann_spec(ms_spec, mass, intensities, annotations, ann_limit=0.01):
l = ms_spec.get_ylim()[1] * ann_limit
for i,intensity in enumerate(intensities[start:end], start=start):
#end selects the first element which not to include.
#Thus q[i+1] always exists as it points to that last element.
if intensity > l and intensity > q[i-1] and intensity > q[i+1]:
#Thus intensity[i+1] always exists as it points to that last element.
if intensity > l and intensity > intensities[i-1] and intensity > intensities[i+1]:
peaks.append(i)
s_peaks = sub_peaks(peaks, mass, intensities,
ms_spec.get_xlim()[1] - ms_spec.get_xlim()[0],
......@@ -279,6 +279,9 @@ if __name__=="__main__":
QtCore.Qt.CTRL + QtCore.Qt.Key_O)
file_menu.addAction('&Quit', main_window.close,
QtCore.Qt.CTRL + QtCore.Qt.Key_Q)
tools_menu = QtWidgets.QMenu('&Tools', main_window)
main_window.menuBar().addMenu(tools_menu)
tools_menu.addAction('&DRL..', lambda: print("hello"))
main_widget = QtWidgets.QWidget(main_window)
main_window.setCentralWidget(main_widget)
......
Supports Markdown
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