Skip to content

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenain committed Aug 3, 2017
1 parent 5865232 commit 9125d39
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 42 deletions.
26 changes: 3 additions & 23 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-08-03 15:04:09 jlenain"
# Time-stamp: "2017-08-03 17:53:10 jlenain"

"""
FLaapLUC (Fermi/LAT automatic aperture photometry Light C<->Urve)
Expand All @@ -18,29 +18,13 @@ http://fermi.gsfc.nasa.gov/ssc/data/analysis/scitools/aperture_photometry.html
@author Jean-Philippe Lenain <mailto:jlenain@in2p3.fr>
"""

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):
"""
Expand All @@ -50,15 +34,11 @@ def main(argv=None):
# options parser:
helpmsg = """%prog [options] <source> [<optional YYYYMM>]
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,
Expand Down
7 changes: 3 additions & 4 deletions bin/flaapluc-allsources
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
#!/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.
@author Jean-Philippe Lenain <mailto:jlenain@in2p3.fr>
"""

import sys
import os
import datetime
import logging
import sys
from optparse import OptionParser

from flaapluc import automaticLightCurve as alc
Expand All @@ -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,
Expand Down
24 changes: 10 additions & 14 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-08-03 17:34:42 jlenain"
# Time-stamp: "2017-08-03 17:54:54 jlenain"

"""
FLaapLUC (Fermi/LAT automatic aperture photometry Light C<->Urve)
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9125d39

Please sign in to comment.