New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access of data in notebooks #1784
Comments
I guess the alternative is this:
@Bultako - Have you decided on this already, whether to introduce an env var for data access or not? |
@cdeil I had decided to declare the datasets required for each notebook in the I have seen env variables like $GAMMACAT inside the code of some classes in |
I have modified You will see that the notebook |
It's good to have a record which tutorials use which data. I think we could just record "cta-1dc" instead of "cta-1dc/caldb/data/cta/1dc/bcf/South_z20_50h/irf_file.fits", i.e. work under the assumption that example datasets are fetched as a whole, not individual files from there. |
Coming back to the question what to put for now in notebooks above, the options being:
Actually talking about this with @adonath at lunch we realised that If we maintain the notebooks in the Gammapy code repo, then probably devs want to execute and work on them there in-place, no? But then with |
I would prefer to keep tutorials in the Gammapy repo and also development notebooks in the Gammapy-extra repo. The tutorials should be seen as something fixed to the doc (like the RST files), more or less fixed, where main changes occur when publishing a new stable release. If we want to modify the notebooks for the tutorials/docs we do On the contrary, development notebooks may be highly variable, as it has been the case up to now. |
Ok. |
This is resolved. We are using GAMMAPY_DATA. Closing issue. |
@Bultako - I've started to change to relative paths to access data from notebook that I'm editing, such as https://github.com/gammapy/gammapy-extra/blob/master/notebooks/background_model.ipynb just now.
So I put this:
instead of this:
This will work with the new
gammapy download
solution, right?If yes, OK if I change all notebooks to this way to access data files today?
The text was updated successfully, but these errors were encountered: