Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Zelenka
prasopes
Commits
ce5a9c9e
Commit
ce5a9c9e
authored
Mar 01, 2021
by
Yan
Browse files
Fixes after last patch
* at least a bit of code-checking - prevention from crashes
parent
4daf967e
Changes
3
Show whitespace changes
Inline
Side-by-side
prasopes/__init__.py
View file @
ce5a9c9e
...
...
@@ -14,7 +14,7 @@ from . import zcetools_help
from
.
import
reactivitytools
__version__
=
"0.0.4
3
"
__version__
=
"0.0.4
4
"
__all__
=
[
'config'
,
'datatools'
,
'docks'
,
'drltools'
,
'datasets'
,
...
...
prasopes/mobtools_gui.py
View file @
ce5a9c9e
...
...
@@ -44,6 +44,12 @@ def export_dial(augCanvas, grph):
def
main_window
(
parent
,
augCanvas
,
update_signal
):
if
not
augCanvas
.
ds
or
isinstance
(
augCanvas
.
ds
,
ds
.
ThermoRawDataset
):
QtWidgets
.
QMessageBox
.
warning
(
parent
,
"MOB GUI"
,
"No spectrum opened, or file format is not supported,"
"nothing to display"
)
return
reactlabels
=
dict
(
name
=
""
,
xlabel
=
"$1/K_0 (Vs/cm^2)\
\\
it→$"
,
ylabel
=
"$Intensity\
\\
it→$"
,
annotation
=
[],
texts
=
[],
ancx
=
5
,
ancy
=
3
)
...
...
@@ -56,6 +62,13 @@ def main_window(parent, augCanvas, update_signal):
QtWidgets
.
QDialog
.
closeEvent
(
widget
,
event
)
def
update_fnc
():
if
not
augCanvas
.
ds
or
isinstance
(
augCanvas
.
ds
,
ds
.
ThermoRawDataset
):
QtWidgets
.
QMessageBox
.
warning
(
parent
,
"MOB GUI"
,
"No spectrum opened, or file format is not supported,"
"nothing to display"
)
return
else
:
mt
.
pop_dial
(
dialspect
,
ionstable
,
reactlabels
,
augCanvas
.
ds
.
get_mobilogram
)
...
...
prasopes/msonmobtools_gui.py
View file @
ce5a9c9e
...
...
@@ -43,6 +43,12 @@ def export_dial(augCanvas, grph):
def
main_window
(
parent
,
augCanvas
,
update_signal
):
if
not
augCanvas
.
ds
or
isinstance
(
augCanvas
.
ds
,
ds
.
ThermoRawDataset
):
QtWidgets
.
QMessageBox
.
warning
(
parent
,
"MSMOB GUI"
,
"No spectrum opened, or file format is not supported,"
"nothing to display"
)
return
reactlabels
=
dict
(
name
=
""
,
xlabel
=
"$m/z\
\\
it→$"
,
ylabel
=
"$Intensity\
\\
it→$"
,
annotation
=
[],
texts
=
[],
ancx
=
5
,
ancy
=
3
)
...
...
@@ -55,6 +61,13 @@ def main_window(parent, augCanvas, update_signal):
QtWidgets
.
QDialog
.
closeEvent
(
widget
,
event
)
def
update_fnc
():
if
not
augCanvas
.
ds
or
isinstance
(
augCanvas
.
ds
,
ds
.
ThermoRawDataset
):
QtWidgets
.
QMessageBox
.
warning
(
parent
,
"MSMOB GUI"
,
"No spectrum opened, or file format is not supported,"
"nothing to display"
)
return
else
:
mt
.
pop_dial
(
dialspect
,
ionstable
,
reactlabels
,
augCanvas
.
ds
.
get_ms_onmob
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment