Skip to content

Commit

Permalink
Merge pull request #35 from HealthyPear/fix-notebook_directory_path
Browse files Browse the repository at this point in the history
Cleanup DL2 input directory from notebook (Closes #34)
  • Loading branch information
Michele Peresano committed Sep 21, 2020
2 parents e7ae38e + b4aa704 commit 0bf3f40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions docs/contribute/comparison_with_EventDisplay.ipynb
Expand Up @@ -159,9 +159,9 @@
},
"outputs": [],
"source": [
"# Path of the required input data in the user's local setup\n",
"# Please, empty these variables before pushing to the repo!\n",
"indir_EventDisplay = \"/Users/michele/Applications/ctasoft/tests/pyirf/EventDisplay/IRFs/data/WPPhys201890925LongObs\"\n",
"# Path of EventDisplay IRF data in the user's local setup\n",
"# Please, empty the indir_EventDisplay variable before pushing to the repo\n",
"indir_EventDisplay = \"\"\n",
"infile_EventDisplay = \"DESY.d20180113.V3.ID0_180degNIM2LST4MST4SST4SCMST4.prod3b-paranal20degs05b-NN.S.3HB9-FD.180000s.root\"\n",
"\n",
"input_EventDisplay = uproot.open(f'{indir_EventDisplay}/{infile_EventDisplay}')"
Expand Down Expand Up @@ -230,7 +230,9 @@
}
],
"source": [
"indir_pyirf = \"/Users/michele/Applications/ctasoft/tests/pyirf/EventDisplay/from_pyirf/irf_EventDisplay_Time50h/\"\n",
"# Path of the pyirf output data in the user's local setup\n",
"# Please, empty the indir_pyirf variable before pushing to the repo\n",
"indir_pyirf = \"\"\n",
"infile_pyirf = \"irf.fits.gz\"\n",
"\n",
"hdul_pyirf = fits.open(f'{indir_pyirf}/{infile_pyirf}') # will be closed at the end of the notebook\n",
Expand Down
10 changes: 6 additions & 4 deletions notebooks/comparison_with_EventDisplay.ipynb
Expand Up @@ -159,9 +159,9 @@
},
"outputs": [],
"source": [
"# Path of the required input data in the user's local setup\n",
"# Please, empty these variables before pushing to the repo!\n",
"indir_EventDisplay = \"/Users/michele/Applications/ctasoft/tests/pyirf/EventDisplay/IRFs/data/WPPhys201890925LongObs\"\n",
"# Path of EventDisplay IRF data in the user's local setup\n",
"# Please, empty the indir_EventDisplay variable before pushing to the repo\n",
"indir_EventDisplay = \"\"\n",
"infile_EventDisplay = \"DESY.d20180113.V3.ID0_180degNIM2LST4MST4SST4SCMST4.prod3b-paranal20degs05b-NN.S.3HB9-FD.180000s.root\"\n",
"\n",
"input_EventDisplay = uproot.open(f'{indir_EventDisplay}/{infile_EventDisplay}')"
Expand Down Expand Up @@ -230,7 +230,9 @@
}
],
"source": [
"indir_pyirf = \"/Users/michele/Applications/ctasoft/tests/pyirf/EventDisplay/from_pyirf/irf_EventDisplay_Time50h/\"\n",
"# Path of the pyirf output data in the user's local setup\n",
"# Please, empty the indir_pyirf variable before pushing to the repo\n",
"indir_pyirf = \"\"\n",
"infile_pyirf = \"irf.fits.gz\"\n",
"\n",
"hdul_pyirf = fits.open(f'{indir_pyirf}/{infile_pyirf}') # will be closed at the end of the notebook\n",
Expand Down

0 comments on commit 0bf3f40

Please sign in to comment.