-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
29 lines (23 loc) · 825 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 28 12:56:46 2022
@author: sergio.morales
"""
def mainnll(exec_point,debug,mlreav):
from lib.syslib import addPath
from lib.dblib import getLastEv,saveNLLcsv
from lib.nlllib import doNLL
from lib.plotlib import plotNLLinfo,plotReavML
from lib.maillib import sendMail
addPath(exec_point)
reloc, ev= getLastEv(debug) #obtiene el último evento localizado
if reloc==True:
NLL,estadf,hypo,voldf = doNLL(ev,exec_point,fini='',ffin='')
saveNLLcsv(voldf, ev, NLL, exec_point)
if ev.ml.iloc[0]<mlreav:
plotNLLinfo(ev,exec_point)
tipo='normal'
else:
plotReavML(ev,voldf,exec_point)
tipo='REAV'
sendMail(voldf, ev,tipo,debug)