Open bkhelifi opened 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:
---> Removed intermediate container c95c1aef4bc9
---> 23137b9ed55d
Step 28/55 : RUN mkdir -p ${NPM_DIR} && chown -R ${NB_USER}:${NB_USER} ${NPM_DIR}
---> Running in 361a9d1a2ade
---> Removed intermediate container 361a9d1a2ade
failed to get digest sha256:23137b9ed55dd943ae35621253218b001d266f683fcf560eea49105ba933abe8: open /var/lib/docker/image/overlay2/imagedb/content/sha256/23137b9ed55dd943ae35621253218b001d266f683fcf560eea49105ba933abe8: no such file or directory
then, when I tried again before submitting this issue, I got:
Step 41/55 : USER root
No such image: sha256:1e4312d961662793af27da856635b93e8450eef97dc69948f2d3a20413e5c043
File "/local/home/ccossou/anaconda3/envs/ctabench/lib/python3.10/site-packages/gammapy/data/event_list.py", line 8, in <module>
from astropy.coordinates.angle_utilities import angular_separation
ModuleNotFoundError: No module named 'astropy.coordinates.angle_utilities'
To install gammapy, I just did pip install gammapy
I have gammapy v1.1, astropy 6.0.0 and python 3.10
@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
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'.