Feature #1290
Optional TS calculation and spectral points with no "Prefactor"
Status: | Closed | Start date: | 07/22/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | Buehler Rolf | % Done: | 100% | |
Category: | - | |||
Target version: | 1.0.0 | |||
Duration: |
Description
The TS calculation in ctlike should be optional. Also, obsutils.specpoints should handle spectral models which don’t have a “Prefactor” defined correctly.
Recurrence
No recurrence.
History
#1 Updated by Buehler Rolf over 10 years ago
- Status changed from New to Pull request
#2 Updated by Knödlseder Jürgen over 10 years ago
- Status changed from Pull request to Feedback
- Target version set to 3rd coding sprint
- % Done changed from 0 to 100
I was wondering whether you need the getlogbins() function in obsutils
?
GammaLib has GEbounds, which gives the same functionality:
ebounds = GBounds(12, GEnergy(0.1, "TeV"), GEnergy(100.0, "TeV"))I thus removed
getlogbins()
and adapted the code to the GEbounds
usage. I also propose to rename the function to spectrum()
.
I also added a make_spectrum.py
script to the examples
folder to test the obsutils.spectrum()
function. Includes a matplotlib
display.
#3 Updated by Knödlseder Jürgen about 10 years ago
- Target version changed from 3rd coding sprint to 1.0.0
#4 Updated by Mayer Michael over 9 years ago
Isn’t this obsolete by finishing #1364?
#5 Updated by Knödlseder Jürgen over 9 years ago
I guess we remove the obsutils.spectrum function as we now have csspec
.
#6 Updated by Knödlseder Jürgen over 9 years ago
- Status changed from Feedback to Closed
Merged into devel
.