cleaner app starting, new application settings class

This commit is contained in:
2022-07-20 17:52:55 +02:00
parent 4a6db36805
commit 569ce8a78d
8 changed files with 224 additions and 176 deletions

View File

@@ -14,13 +14,13 @@ from pathlib import Path
#import qsingleton #ZAC: orig. code
#from CoordinatesModel import CoordinatesModel #ZAC: orig. code
from app_config import settings, appsconf, option
from app_config import AppCfg #settings, option, appsconf
EMBL_RESULTS_TIMEOUT = "embl/results_timeout"
EMBL_SAVE_FILES = "embl/save_files"
embl = appsconf["embl"]
#embl = appsconf["embl"]
#import imageio
import numpy as np
@@ -72,6 +72,7 @@ class EmblMessage(QObject):
def __init__(self, parent=None, **kwargs):
super(EmblMessage, self).__init__(parent, **kwargs)
return #ZAC: orig. code
if not embl["enabled"]:
return
context = zmq.Context()