cleanup loading of M_INTERPRETER

This commit is contained in:
frederik
2024-02-19 14:38:17 +01:00
parent 8b1da71398
commit b4e8fee59e
2 changed files with 2 additions and 5 deletions
+2 -5
View File
@@ -22,7 +22,7 @@ log = logging.getLogger(__name__)
userDir = os.path.expanduser('~')
INTERPRETER, INCLUDE_LIST, EXCLUDE_LIST = (None, None, None)
INTERPRETER, M_INTERPRETER, INCLUDE_LIST, EXCLUDE_LIST = (None, None, None, None)
PREDICTED_SPECIES_LIST = []
model, priv_thresh, sf_thresh = (None, None, None)
@@ -92,10 +92,7 @@ def predictFilter(lat, lon, week):
global M_INTERPRETER
# Does interpreter exist?
try:
if M_INTERPRETER is None:
loadMetaModel()
except Exception:
if M_INTERPRETER is None:
loadMetaModel()
# Prepare mdata as sample