:py~fermipy.gtanalysis.GTAnalysis.lightcurve
can be used to fit charateristics of a source (flux, TS, etc.) in a sequence of time bins.
# Generate a lightcurve with two bins
lc = gta.lightcurve('sourceA', nbins=2)
# Generate a lightcurve with 1-week binning
lc = gta.lightcurve('sourceA', binsz=86400.*7.0)
# Generate a lightcurve freeing sources within 3 deg of the source
# of interest
lc = gta.lightcurve('sourceA', binsz=86400.*7.0, free_radius=3.0)
fermipy.gtanalysis.GTAnalysis.lightcurve