gammapy / gammapy

A Python package for gamma-ray astronomy
https://gammapy.org
BSD 3-Clause "New" or "Revised" License
230 stars 196 forks source link

Update of the 1D analysis tutorial #5078

Open bkhelifi opened 9 months ago

bkhelifi commented 9 months ago

The 1D tutorial can be updated with the latest developments.

Indeed, the dataset serialisation uses a manual loop. One might also use `gammapy.stats.utils.ts_to_sigma'.

ccossou commented 9 months ago

I'm trying to get a sensitivity using the following tutorial: https://docs.gammapy.org/dev/tutorials/analysis-1d/cta_sensitivity.html?highlight=sensitivity

While I was going to submit an issue, I've found this one and I think what I'm struggling with is part of "1D analysis tutorial". So I refrained from creating a new issue, but can if it turns out they are unrelated.

My issues are:

AtreyeeS commented 5 months ago

@ccossou Your issue is probably unrelated to the docs improvement proposed here. Gammapy 1.1 is not compatible with astropy 6.0. The best way to set it up would be to use conda, see here https://docs.gammapy.org/1.1/getting-started/index.html#quickstart-setup You may also update to Gammapy v1.2 which is compatible with the latest astropy version