Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To run the example you will need to a few  few additional files.

  • 3C 279 photon and spacecraft files, PH00.fits PH01.fits and SC00.fits.
  • Configuration file for fermipy, config.yaml
  • Jupyter notebook, LikelihoodWithFermipy2021.ipynb
  • Precomputed data files (so you can go through the example quickly the first time without waiting for calculations).

Using your native operating system, download this file, fermipyTutorialData.tgz, ADD LINK and save it in the your shared directory (this is the same directory on your native operating system where you typed docker start).

Setup a new analysis directory for this tutorial in FermiBottle

Switch to the FermiBottle window (the one with a prompt that looks something like this screenshot.) If you exited FermiBottle, you may need to attach to it again. See the using FermiBottle instructions.

Make a directory for this tutorial in /data (the shared directory in FermiBottle). I called mine FermipyTutorial.

...

Prepare FermiBottle for analysis

Is FermiBottle running? You should have a window with a fermi prompt similar to this.

Image 1

If you don't have a window open to FermiBottle, follow the instructions to start docker and attach to FermiBottle. Be sure to activate the Fermi analysis. These steps are described in the Using FermiBottle instructions.

Update fermipy 

To run the example, you will need to update to the latest version of fermipy, 1.0.1.

In your FermiBottle window run the command
pip install --upgrade fermipy

Image2

This will take a little time to download and install the packages.

Make a new directory for the fermipy tutorial in FermiBottle

Follow these steps to prepare to run the Likelihood With Fermipy notebook

In the FermiBottle window

  1. Change directory to be in the /data directory
  2. Make a directory for this tutorial in /data. Let's call it FermipyTutorial.
  3. Move fermipyTutorialData.tgz into /data/FermipyTutorial
  4. Change directory to /data/FermipyTutorial

unzip the data files using the command line

unzip fermipyTutorialData.tgzImage3

You should see something like this when you list the directory contents.image

Image4

Start the Jupyter notebook

In that same directory, you can now run the notebook command to go through the tutorial workbook.