Skip to content

Commit 7572d67

Browse files
v1.1
1 parent 13a5e1b commit 7572d67

File tree

269 files changed

+2334
-1752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

269 files changed

+2334
-1752
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
TODO
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]
@@ -21,9 +23,6 @@ var/
2123
.installed.cfg
2224
*.egg
2325

24-
# Documentation
25-
doc/
26-
2726
# IPython Notebook
2827
.ipynb_checkpoints
2928

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# pySELFI #
22

33
[![arXiv](https://img.shields.io/badge/astro--ph.CO-arxiv%3A1902.10149-B31B1B.svg?style=flat)](https://arxiv.org/abs/1902.10149)
4-
[![GitHub version](https://img.shields.io/github/tag/florent-leclercq/pyselfi.svg?maxAge=3600&label=version)](https://github.com/florent-leclercq/pyselfi)
5-
[![GitHub commits](https://img.shields.io/github/commits-since/florent-leclercq/pyselfi/v1.0.svg)](https://github.com/florent-leclercq/pyselfi/commits)
4+
[![GitHub version](https://img.shields.io/github/tag/florent-leclercq/pyselfi.svg?label=version)](https://github.com/florent-leclercq/pyselfi)
5+
[![GitHub commits](https://img.shields.io/github/commits-since/florent-leclercq/pyselfi/v1.1.svg)](https://github.com/florent-leclercq/pyselfi/commits)
66
[![DOI](https://zenodo.org/badge/197575311.svg)](https://zenodo.org/badge/latestdoi/197575311)
77
[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/florent-leclercq/pyselfi/blob/master/LICENSE)
88
[![PyPI version](https://badge.fury.io/py/pyselfi.svg)](https://badge.fury.io/py/pyselfi)
@@ -22,7 +22,7 @@ The code's homepage is [http://pyselfi.florent-leclercq.eu](http://pyselfi.flore
2222

2323
## Reference ##
2424

25-
To acknowledge the use of pySELFI in research papers, please cite its Zenodo doi (see the badge above), as well as the paper <a href="https://arxiv.org/abs/1902.10149" target="blank">Leclercq <i>et al.</i> 2019</a>:
25+
To acknowledge the use of pySELFI in research papers, please cite its [doi:10.5281/zenodo.3341588](https://doi.org/10.5281/zenodo.3341588) (or for the latest version, see the badge above), as well as the paper <a href="https://arxiv.org/abs/1902.10149" target="blank">Leclercq <i>et al.</i> (2019)</a>:
2626

2727
*Primordial power spectrum and cosmology from black-box galaxy surveys*<br/>
2828
F. Leclercq, W. Enzi, J. Jasche, A. Heavens<br/>
@@ -42,7 +42,8 @@ F. Leclercq, W. Enzi, J. Jasche, A. Heavens<br/>
4242
primaryClass = {astro-ph.CO},
4343
adsurl = {https://ui.adsabs.harvard.edu/abs/2019arXiv190210149L},
4444
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
45+
}
4546

4647
## License ##
4748

48-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. By downloading and using pyselfi, you agree to the [LICENSE](LICENSE), distributed with the source code in a text file of the same name.
49+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. By downloading and using pySELFI, you agree to the [LICENSE](LICENSE), distributed with the source code in a text file of the same name.

doc/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

doc/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = source
8+
BUILDDIR = build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

doc/make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
if "%1" == "" goto help
14+
15+
%SPHINXBUILD% >NUL 2>NUL
16+
if errorlevel 9009 (
17+
echo.
18+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19+
echo.installed, then set the SPHINXBUILD environment variable to point
20+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21+
echo.may add the Sphinx directory to PATH.
22+
echo.
23+
echo.If you don't have Sphinx installed, grab it from
24+
echo.http://sphinx-doc.org/
25+
exit /b 1
26+
)
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
33+
34+
:end
35+
popd

doc/source/_static/custom.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.wy-side-nav-search, .wy-nav-top {
2+
background: #292b30 url('http://florent-leclercq.eu/css/images/bg1_1.jpg');
3+
}
4+
5+
.wy-nav-content
6+
{
7+
background: #292b30 url('http://florent-leclercq.eu/css/images/bg1.jpg');
8+
color: #737373;
9+
font-size: 11pt;
10+
line-height: 1.75em;
11+
}
12+
13+
a, a:visited
14+
{
15+
color: #009CBC;
16+
text-decoration: none;
17+
}
18+
19+
a:hover
20+
{
21+
color: #00ACD7;
22+
text-decoration: underline;
23+
}
24+
25+
h1,h2,h3,h4,h5,h6
26+
{
27+
color: #707070;
28+
text-shadow: -1px -1px 1px rgba(0,0,0,0.2);
29+
}
30+
31+
.wy-side-nav-search>a, .wy-side-nav-search .wy-dropdown>a
32+
{
33+
color: #fcfcfc;
34+
}
35+
36+
.wy-menu-vertical header, .wy-menu-vertical p.caption
37+
{
38+
color: #9b9b9b;
39+
}

doc/source/api/blackboxes/grf.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pyselfi_examples.grf.model.blackbox_GRF module
2+
=================================================
3+
4+
.. automodule:: pyselfi_examples.grf.model.blackbox_GRF
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pyselfi_examples.simbelmyne.model.blackbox_SBMY module
2+
=========================================================
3+
4+
.. automodule:: pyselfi_examples.simbelmyne.model.blackbox_SBMY
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/source/api/blackboxes_api.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Example blackboxes API
2+
======================
3+
4+
Gaussian random field
5+
---------------------
6+
7+
Modules are located in ``pyselfi_examples/grf/model/``.
8+
9+
.. currentmodule:: pyselfi_examples.grf.model
10+
11+
.. autosummary::
12+
blackbox_GRF
13+
14+
.. toctree::
15+
:hidden:
16+
:maxdepth: 2
17+
18+
blackboxes/grf
19+
20+
Galaxy survey
21+
-------------
22+
23+
Modules are located in ``pyselfi_examples/simbelmyne/model/``.
24+
25+
.. currentmodule:: pyselfi_examples.simbelmyne.model
26+
27+
.. autosummary::
28+
blackbox_SBMY
29+
30+
.. toctree::
31+
:hidden:
32+
:maxdepth: 2
33+
34+
blackboxes/simbelmyne

doc/source/api/inference_api.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Modelling & Inference API
2+
=========================
3+
4+
Primordial power spectrum
5+
-------------------------
6+
7+
Modules are located in ``pyselfi/power_spectrum/``.
8+
9+
.. currentmodule:: pyselfi
10+
11+
.. autosummary::
12+
power_spectrum.prior
13+
power_spectrum.selfi
14+
15+
.. toctree::
16+
:hidden:
17+
:maxdepth: 2
18+
19+
power_spectrum/prior
20+
power_spectrum/selfi

0 commit comments

Comments
 (0)