Create TSmap_freeNormalization_3ML.ipynb#3
Conversation
|
Hey @PbU-Jason ! Thanks for working on this, and sorry it took me so long to look at it. It looks great! I didn't see any issue with the calculation. Next week, we can work on:
Longer term, we can:
|
|
I'm just going to wait a little bit to merge this, I didn't have time to actually run it today. But this is what we'll be doing next week anyway! |
|
Just a minor comment. In my environment (Apple M1 Max), I got an error in the 12th cell. When I changed spectrum.K.value, then it disappeared. |
|
Before merging you need to change after the fit : spectrum.K.value need to be 1e-10 otherwise you will have a migrad error |
|
In order to remove the gammapy dependance, you need to remove # Here we translate to gammapy. We will make the detector response
# accept 3ML models and there will be no need for this
if not isinstance(spectrum, Powerlaw):
raise RuntimeError("Only PowerLaw supported for now")
spectrum = PowerLawSpectralModel(
index = -spectrum.index.value,
amplitude = spectrum.K.value * spectrum.K.unit,
reference = spectrum.piv.value * spectrum.piv.unit)
in cell 2 |
|
Received! Thanks for helping me find some bugs~ |
put my first version of TS map on intro_cosipy