-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: move examples into repository (#169)
Move the examples as notebooks into the repository. The documentation uses the pre-computed notebook outputs, and so doesn't need to compute the costly examples every time. The examples have also been updated slightly, to reflect the changing best practices. Closes: #168
- Loading branch information
Showing
16 changed files
with
1,972 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
Examples | ||
======== | ||
|
||
These examples show how GLASS can be used in practice. They are often a good | ||
starting point for more complicated and realistic simulations. | ||
|
||
The examples currently require `CAMB`__ to produce angular matter power spectra | ||
and for the cosmological background. Make sure you have CAMB installed: | ||
|
||
.. code-block:: console | ||
$ python -c 'import camb' # should not give an error | ||
If you want to compute the angular matter power spectra in the examples, you | ||
need the `glass.ext.camb` package: | ||
|
||
.. code-block:: console | ||
$ pip install glass.ext.camb | ||
__ https://camb.readthedocs.io/ | ||
|
||
|
||
Basic examples | ||
-------------- | ||
|
||
To get started, these examples focus on simulating one thing at a time. | ||
|
||
.. nbgallery:: | ||
|
||
examples/1-basic/shells.ipynb | ||
examples/1-basic/matter.ipynb | ||
examples/1-basic/density.ipynb | ||
examples/1-basic/lensing.ipynb | ||
examples/1-basic/photoz.ipynb | ||
|
||
|
||
Advanced examples | ||
----------------- | ||
|
||
More advanced examples doing multiple things at the same time. | ||
|
||
.. nbgallery:: | ||
|
||
examples/2-advanced/cosmic_shear.ipynb | ||
examples/2-advanced/stage_4_galaxies.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.