Skip to content
GitLab
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
f640b043
Commit
f640b043
authored
Aug 13, 2020
by
Yan
Browse files
Improved stability
* errors caused by insufficient memory stack during start resolved by single-threading.
parent
803f0281
Changes
2
Hide whitespace changes
Inline
Side-by-side
prasopes/__init__.py
View file @
f640b043
...
...
@@ -13,7 +13,7 @@ from . import zcetools_help
from
.
import
reactivitytools
__version__
=
"0.0.3
4
"
__version__
=
"0.0.3
5
"
__all__
=
[
'config'
,
'datatools'
,
'docks'
,
'drltools'
,
'drltoos_gui'
,
'filetools'
,
...
...
prasopes/__main__.py
View file @
f640b043
...
...
@@ -63,7 +63,8 @@ def show_exception_and_exit(exc_type, exc_value, tb):
sys
.
exit
(
-
1
)
def
load_file
(
parent
,
augCanvas
,
update
,
settings
,
loadthread
,
filename
=
None
):
def
load_file
(
parent
,
augCanvas
,
update
,
settings
,
loadthread
,
filename
=
None
,
nothreading
=
False
):
"""populates dataset and plots it"""
directory
=
augCanvas
.
filename
or
settings
.
value
(
"open_folder"
)
filename
=
filename
or
QtWidgets
.
QFileDialog
.
getOpenFileName
(
...
...
@@ -116,8 +117,11 @@ def load_file(parent, augCanvas, update, settings, loadthread, filename=None):
update
.
signal
.
emit
()
error
.
signal
.
connect
(
lambda
:
QtWidgets
.
QMessageBox
.
critical
(
parent
,
errormsg
[
0
],
errormsg
[
1
]))
loadthread
.
run
=
runfnc
loadthread
.
start
()
if
nothreading
:
runfnc
()
else
:
loadthread
.
run
=
runfnc
loadthread
.
start
()
def
print_graph
(
augCanvas
):
...
...
@@ -466,7 +470,7 @@ def main():
if
len
(
sys
.
argv
)
==
2
:
load_file
(
main_window
,
augCanvas
,
update
,
config
,
loadthread
,
filename
=
sys
.
argv
[
1
])
filename
=
sys
.
argv
[
1
]
,
nothreading
=
True
)
else
:
gt
.
pop_plot
([],
[],
augCanvas
.
spectplot
,
augCanvas
.
ms
)
gt
.
pop_plot
([],
[],
augCanvas
.
chromplot
,
augCanvas
.
chrom
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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