cleanup loading of M_INTERPRETER
This commit is contained in:
Binary file not shown.
+2
-5
@@ -22,7 +22,7 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
userDir = os.path.expanduser('~')
|
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 = []
|
PREDICTED_SPECIES_LIST = []
|
||||||
model, priv_thresh, sf_thresh = (None, None, None)
|
model, priv_thresh, sf_thresh = (None, None, None)
|
||||||
|
|
||||||
@@ -92,10 +92,7 @@ def predictFilter(lat, lon, week):
|
|||||||
global M_INTERPRETER
|
global M_INTERPRETER
|
||||||
|
|
||||||
# Does interpreter exist?
|
# Does interpreter exist?
|
||||||
try:
|
if M_INTERPRETER is None:
|
||||||
if M_INTERPRETER is None:
|
|
||||||
loadMetaModel()
|
|
||||||
except Exception:
|
|
||||||
loadMetaModel()
|
loadMetaModel()
|
||||||
|
|
||||||
# Prepare mdata as sample
|
# Prepare mdata as sample
|
||||||
|
|||||||
Reference in New Issue
Block a user