Commit 6bb3ce92 authored by 3Yan's avatar 3Yan
Browse files

FIX: DRL PT minigraphs for ion selection updates

* before they did not reacted to new file opening
parent 04b84005
......@@ -86,7 +86,7 @@ def about(parent):
QtWidgets.QMessageBox.information(
parent, "About Prasopes",
"Prasopes Finnigan raw file viewer\n\n"
"Version: 0.0.5 (alpha)")
"Version: 0.0.6 (alpha)")
def main():
......
......@@ -640,14 +640,19 @@ def select_all_btn_up(ds, drls, drlspectrum, state=None):
def main_window(parent, ds, filename, cache, update_signal):
"""constructs a dialog window"""
def onclose(widget, event, buffer, drls, canvas, update_fnc):
def onclose(widget, event, buffer, drls, canvas, update_fnc, update_ptrows):
buffer[0], buffer[1] = drls, canvas
update_signal.signal.disconnect(update_fnc)
update_signal.signal.disconnect(update_ptrows)
QtWidgets.QMainWindow.closeEvent(widget, event)
def update_fnc():
update_drlspectrum(ds, drls, chromplot)
def update_ptrows():
for row in range(drls['pt'].rowCount()):
ptable_changed(row, 1, ds, drls, chromplot)
if cache == [None, None]:
# pt = parenttable
# dt = daughtertable
......@@ -661,15 +666,15 @@ def main_window(parent, ds, filename, cache, update_signal):
drls['checkAll'] = QtWidgets.QCheckBox("Select all")
drls['cors'] = QtWidgets.QSpinBox(minimum=0)
drls['cors'].setValue(3)
drls['graphlabels'] = dict(x=[0], y=[0], line=None, name="",
xlabel="time(min)",
ylabel="relative intensity")
dial_graph = Figure(figsize=(5, 2), dpi=100, facecolor="None")
chromplot = dial_graph.add_subplot(111, facecolor=(1, 1, 1, 0.8))
graph_canvas = FigureCanvas(dial_graph)
graph_canvas.setStyleSheet("background-color:transparent;")
graph_canvas.setAutoFillBackground(False)
drls['graphlabels'] = dict(x=[0], y=[0], line=None, name="",
xlabel="time(min)",
ylabel="relative intensity")
gt.pan_factory(chromplot)
gt.zoom_factory(chromplot, 1.15)
gt.pop_plot(chromplot, drls['graphlabels'])
......@@ -740,6 +745,7 @@ def main_window(parent, ds, filename, cache, update_signal):
drls['checkAll'].stateChanged.connect(lambda state:
select_all_btn_up(ds, drls, chromplot, state))
update_signal.signal.connect(update_fnc)
update_signal.signal.connect(update_ptrows)
actionBar = QtWidgets.QToolBar(window)
window.addToolBar(QtCore.Qt.BottomToolBarArea, actionBar)
......
......@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setup(
name="prasopes",
version="0.0.5",
version="0.0.6",
author="Jan Zelenka",
author_email="3yanyanyan@gmail.com",
description="Thermo/Finnigan .raw file viewer based on rawprasslib",
......
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