Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1015 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 1015 Bytes

Gammapy lectures and tutorials at Thai-CTA workshop

Installation and set-up

We reccomend that you install gammapy via conda

To download the tutorials and associated datasets (necessary for the tutorials in this workshop)

  • $ gammapy download tutorials
  • $ cd gammapy-tutorials
  • $ export GAMMAPY_DATA=$PWD/datasets

To check if everything is working fine, open a new terminal and type

  • $ conda activate gammapy-0.18.2
  • ipython

In the ipython window, type

  • from gammapy.data import DataStore
  • ds = DataStore.from_dir("$GAMMAPY_DATA/hess-dl3-dr1")
  • obs = ds.get_observations()
  • print(len(obs))

If the cells run without any error and prints 105, Congratulations! You have correctly set-up gammapy

In case of any trouble, please contact