Skip to content

Commit

Permalink
fix get PLSuperExpCutoff index
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Aguasca-Cabot <[email protected]>
  • Loading branch information
aaguasca committed Oct 2, 2024
1 parent f2126df commit a6b1bc2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gammapy/catalog/fermi.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,14 @@ def _info_spectral_fit(self):
)

fmt = "{:<45s} : {:.3f} +- {:.3f}\n"
ss += fmt.format(
"Spectral index", d[tag + "_Index"], d["Unc_" + tag + "_Index"]
)
if f"{tag}_ExpfactorS" in d:
ss += fmt.format(
"Spectral index", d[tag + "_IndexS"], d["Unc_" + tag + "_IndexS"]
)
else:
ss += fmt.format(
"Spectral index", d[tag + "_Index"], d["Unc_" + tag + "_Index"]
)

fmt = "{:<45s} : {:.3} +- {:.3} {}\n"
ss += fmt.format(
Expand Down

0 comments on commit a6b1bc2

Please sign in to comment.