Commit 4adae4c5 authored by mirandaa's avatar mirandaa

dirty hack to reduce likelyhood of crash

give time for UI thread to update
no memory concurrency
parent 32151a9c
...@@ -487,6 +487,10 @@ def doImport(options, scan, importDir, output, parent, listFiles, isTaken, isGro ...@@ -487,6 +487,10 @@ def doImport(options, scan, importDir, output, parent, listFiles, isTaken, isGro
nb_ms_peaks.append(ret[3]) nb_ms_peaks.append(ret[3])
nb_msms_scans.append(ret[4]) nb_msms_scans.append(ret[4])
nb_msms_peaks.append(ret[5]) nb_msms_peaks.append(ret[5])
from time import sleep
sleep(1) # dirty hack to reduce threading problem, give enough time for UI to update
# os if you enable memory logging it crashes in the same way
if not len(dictBasePeakIntensity.keys()) > 0: if not len(dictBasePeakIntensity.keys()) > 0:
......
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