diff --git a/bin/flaapluc b/bin/flaapluc index 9ed8cb8..f631f3e 100755 --- a/bin/flaapluc +++ b/bin/flaapluc @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Time-stamp: "2017-08-03 15:04:09 jlenain" +# Time-stamp: "2017-08-03 17:53:10 jlenain" """ FLaapLUC (Fermi/LAT automatic aperture photometry Light C<->Urve) @@ -18,29 +18,13 @@ http://fermi.gsfc.nasa.gov/ssc/data/analysis/scitools/aperture_photometry.html @author Jean-Philippe Lenain """ -import sys -import os -import datetime -import glob import logging +import sys from optparse import OptionParser -from ConfigParser import ConfigParser -# Import custom module from flaapluc import automaticLightCurve as alc from flaapluc.automaticLightCurve import processSrc -# Flags -BATCH = True -# Flag to know whether Gamma is assumed to be ASSUMEDGAMMA -# or taken from the 3FGL. -FLAGASSUMEDGAMMA = False - -# Global variables -# assumed photon index for a source not belonging to the 3FGL -ASSUMEDGAMMA = -2.5 - - def main(argv=None): """ @@ -50,15 +34,11 @@ def main(argv=None): # options parser: helpmsg = """%prog [options] [] -This is the version $Id$ - -If you call %prog using the -l option, you need to provide a year and a month in input, in the format YYYYMM. - Use '-h' to get the help message """ - parser = OptionParser(version="$Id$", + parser = OptionParser(version="%prog v1.2.1", usage=helpmsg) parser.add_option("-d", "--daily", action="store_true", dest="d", default=False, diff --git a/bin/flaapluc-allsources b/bin/flaapluc-allsources index a78b3e8..03b8b68 100755 --- a/bin/flaapluc-allsources +++ b/bin/flaapluc-allsources @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Time-stamp: "2017-08-03 15:04:36 jlenain" +# Time-stamp: "2017-08-03 17:53:15 jlenain" """ Process all sources for automatic aperture photometry of interesting high energy sources. @@ -9,10 +9,9 @@ Process all sources for automatic aperture photometry of interesting high energy @author Jean-Philippe Lenain """ -import sys import os -import datetime import logging +import sys from optparse import OptionParser from flaapluc import automaticLightCurve as alc @@ -31,7 +30,7 @@ Use '-h' to get the help message """ - parser = OptionParser(version="%prog v1.2", + parser = OptionParser(version="%prog v1.2.1", usage=helpmsg) parser.add_option("-d", "--daily", action="store_true", dest="d", default=False, diff --git a/flaapluc/automaticLightCurve.py b/flaapluc/automaticLightCurve.py index 738dd61..b927ed8 100755 --- a/flaapluc/automaticLightCurve.py +++ b/flaapluc/automaticLightCurve.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Time-stamp: "2017-08-03 17:34:42 jlenain" +# Time-stamp: "2017-08-03 17:54:54 jlenain" """ FLaapLUC (Fermi/LAT automatic aperture photometry Light C<->Urve) @@ -19,13 +19,18 @@ """ import datetime -import time import glob import logging -import numpy as np -import sys +import matplotlib +matplotlib.use('Agg') + import os +import sys +import time +import numpy as np from ConfigParser import ConfigParser +from matplotlib import pyplot as plt +from matplotlib.ticker import FuncFormatter import ephem from astropy.io import ascii @@ -34,18 +39,9 @@ from astropy.coordinates import SkyCoord as Coords from astropy import units as u +import gt_apps as fermi from flaapluc import extras -# Import some matplotlib modules -import matplotlib - -matplotlib.use('Agg') - -from matplotlib import pyplot as plt -from matplotlib.ticker import FuncFormatter - -# Import the Science Tools modules -import gt_apps as fermi # Flags BATCH = True diff --git a/setup.py b/setup.py index fa9d12c..3021662 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ sys.exit('Sorry, Python >= 3.0 is not supported') setup(name='flaapluc', - version='1.2', + version='1.2.1', description='Quick generation of alerts from Fermi-LAT data', url='', author='Jean-Philippe Lenain',