Skip to content

Commit

Permalink
Modify wrapper for doubling time to return the doubling coordinates a…
Browse files Browse the repository at this point in the history
…s an astropy.Time instead of an astropy.units.Quanity

Signed-off-by: cgalelli <[email protected]>
  • Loading branch information
cgalelli committed Dec 4, 2023
1 parent 20f25bf commit a12b15d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gammapy/estimators/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,12 @@ def compute_lightcurve_doublingtime(lightcurve, flux_quantity="flux"):
energies[1:],
doubling_dict["doubling"],
doubling_dict["doubling_err"],
doubling_dict["doubling_coord"],
lightcurve.geom.axes["time"].reference_time
+ doubling_dict["doubling_coord"],
doubling_dict["halving"],
doubling_dict["halving_err"],
doubling_dict["halving_coord"],
lightcurve.geom.axes["time"].reference_time
+ doubling_dict["halving_coord"],
],
names=(
"min_energy",
Expand Down

0 comments on commit a12b15d

Please sign in to comment.