Skip to content

Commit

Permalink
Fixed forcealert.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenain committed Jul 28, 2017
1 parent 0e86509 commit a8a6261
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bin/flaapluc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Time-stamp: "2017-07-28 20:23:42 jlenain"
# Time-stamp: "2017-07-28 22:27:00 jlenain"

"""
FLaapLUC (Fermi/LAT automatic aperture photometry Light C<->Urve)
Expand Down Expand Up @@ -105,7 +105,7 @@ def processSrc(mysrc=None,useThresh=False,daily=False,mail=True,longTerm=False,t
else:
print "[%s] Processing long time-binned light curve..." % mysrc

auto=automaticLightCurve(customThreshold=useThresh,daily=daily,longTerm=longTerm,yearmonth=yearmonth,mergelongterm=mergelongterm,withhistory=withhistory,configfile=configfile,stopmonth=stopmonth, verbose=verbose, debug=debug)
auto=automaticLightCurve(customThreshold=useThresh,daily=daily,longTerm=longTerm,yearmonth=yearmonth,mergelongterm=mergelongterm,withhistory=withhistory,configfile=configfile,stopmonth=stopmonth, verbose=verbose, debug=debug, forcealert=forcealert)
auto.readSourceList(mysrc)

if debug:
Expand Down
8 changes: 4 additions & 4 deletions flaapluc/automaticLightCurve.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Time-stamp: "2017-07-28 20:22:19 jlenain"
# Time-stamp: "2017-07-28 22:30:13 jlenain"

"""
FLaapLUC (Fermi/LAT automatic aperture photometry Light C<->Urve)
Expand Down Expand Up @@ -1291,7 +1291,7 @@ def Triggered(self):
self.active=True
else:
self.active=False

# Combine killTrigger and flux above threshold criteria
if (not self.triggerkilled and self.active) or self.forcealert:
SENDALERT = True
Expand All @@ -1318,12 +1318,12 @@ def sendAlert(self,nomailall=False,sendmail=False):
@return True
@rtype bool
'''

# Import modules
try:
# Import smtplib to send mails
import smtplib

# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
Expand Down

0 comments on commit a8a6261

Please sign in to comment.