Skip to content

Commit a75d029

Browse files
v2.0
1 parent 1016286 commit a75d029

File tree

299 files changed

+7269
-744
lines changed

Some content is hidden

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

299 files changed

+7269
-744
lines changed

.readthedocs.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Read the Docs configuration file
2+
version: 2
3+
4+
sphinx:
5+
builder: html
6+
configuration: doc/source/conf.py
7+
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.8"
12+
13+
python:
14+
system_packages: True
15+
install:
16+
- method: pip
17+
path: .
18+
extra_requirements:
19+
- lotkavolterra_example
20+
- docs

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,71 @@
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+
[![arXiv](https://img.shields.io/badge/astro--ph.CO-arxiv%3A2209.11057-B31B1B.svg?style=flat)](https://arxiv.org/abs/2209.11057)
45
[![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.2.svg)](https://github.com/florent-leclercq/pyselfi/commits)
6+
[![GitHub commits](https://img.shields.io/github/commits-since/florent-leclercq/pyselfi/v2.0.svg)](https://github.com/florent-leclercq/pyselfi/commits)
67
[![DOI](https://zenodo.org/badge/197575311.svg)](https://zenodo.org/badge/latestdoi/197575311)
78
[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/florent-leclercq/pyselfi/blob/master/LICENSE)
89
[![PyPI version](https://badge.fury.io/py/pyselfi.svg)](https://badge.fury.io/py/pyselfi)
910
[![Docs](https://readthedocs.org/projects/pyselfi/badge/)](http://pyselfi.readthedocs.io/en/latest/)
10-
[![Build Status](https://travis-ci.com/florent-leclercq/pyselfi.svg?branch=master)](https://travis-ci.com/florent-leclercq/pyselfi)
1111
[![Website florent-leclercq.eu](https://img.shields.io/website-up-down-green-red/http/pyselfi.florent-leclercq.eu.svg)](http://pyselfi.florent-leclercq.eu/)
1212

1313
Simulator Expansion for Likelihood-Free Inference (SELFI): a python implementation.
1414

1515
## Documentation ##
1616

17-
The code's homepage is [http://pyselfi.florent-leclercq.eu](http://pyselfi.florent-leclercq.eu). The documentation is available on readthedocs at [https://pyselfi.readthedocs.io/](https://pyselfi.readthedocs.io/). Limited user-support may be asked from the main author, Florent Leclercq.
17+
The code's homepage is [https://pyselfi.florent-leclercq.eu](https://pyselfi.florent-leclercq.eu). The documentation is available on readthedocs at [https://pyselfi.readthedocs.io/](https://pyselfi.readthedocs.io/). Limited user-support may be asked from the main author, Florent Leclercq.
1818

1919
## Contributors ##
2020

21-
* Florent Leclercq, florent.leclercq@polytechnique.org
21+
* Florent Leclercq, florent.leclercq@iap.fr
2222

2323
## Reference ##
2424

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>:
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 papers [Leclercq <i>et al.</i> (2019)](https://arxiv.org/abs/1902.10149) and [Leclercq (2022)](https://arxiv.org/abs/2209.11057):
2626

27-
*Primordial power spectrum and cosmology from black-box galaxy surveys*<br/>
27+
* *Primordial power spectrum and cosmology from black-box galaxy surveys*<br/>
2828
F. Leclercq, W. Enzi, J. Jasche, A. Heavens<br/>
2929
<a href="http://dx.doi.org/10.1093/mnras/stz2718" target="blank">MNRAS <b>490</b>, 4237 (2019)</a>, <a href="http://arxiv.org/abs/1902.10149" target="blank">arXiv:1902.10149</a> [<a href="http://arxiv.org/abs/1902.10149" target="blank">astro-ph.CO</a>] [<a href="https://ui.adsabs.harvard.edu/?#abs/2019MNRAS.490.4237L" target="blank">ADS</a>] [<a href="http://arxiv.org/pdf/1902.10149" class="document" target="blank">pdf</a>]
30+
* *Simulation-based inference of Bayesian hierarchical models while checking for model misspecification*<br/>
31+
F. Leclercq<br/>
32+
Proceedings of the <a href="https://maxent22.see.asso.fr/" target="blank">41st International Conference on Bayesian and Maximum Entropy methods in Science and Engineering (MaxEnt2022)</a>, 18-22 July 2022, Paris, France<br />
33+
<a href="https://doi.org/10.3390/psf2022005004" target="blank"> Physical Sciences Forum <b>5</b>, 4 (2022)</a>, <a href="https://arxiv.org/abs/2209.11057" target="blank">arXiv:2209.11057</a> [<a href="https://arxiv.org/abs/2209.11057" target="blank">astro-ph.CO</a>] [<a href="https://ui.adsabs.harvard.edu/?#abs/2022arXiv220911057L" target="blank">ADS</a>] [<a href="https://arxiv.org/pdf/2209.11057" class="document" target="blank">pdf</a>]
3034

31-
@ARTICLE{pySELFI,
32-
author = {{Leclercq}, Florent and {Enzi}, Wolfgang and {Jasche}, Jens and {Heavens}, Alan},
33-
title = "{Primordial power spectrum and cosmology from black-box galaxy surveys}",
34-
journal = {\mnras},
35-
keywords = {methods: statistical, cosmological parameters, large-scale structure of Universe, Astrophysics - Cosmology and Nongalactic Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
36-
year = "2019",
37-
month = "Dec",
38-
volume = {490},
39-
number = {3},
40-
pages = {4237-4253},
41-
doi = {10.1093/mnras/stz2718},
42-
archivePrefix = {arXiv},
43-
eprint = {1902.10149},
44-
primaryClass = {astro-ph.CO},
45-
adsurl = {https://ui.adsabs.harvard.edu/abs/2019MNRAS.490.4237L},
46-
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
47-
}
35+
36+
@ARTICLE{pySELFI1,
37+
author = {{Leclercq}, Florent and {Enzi}, Wolfgang and {Jasche}, Jens and {Heavens}, Alan},
38+
title = "{Primordial power spectrum and cosmology from black-box galaxy surveys}",
39+
journal = {\mnras},
40+
keywords = {methods: statistical, cosmological parameters, large-scale structure of Universe, Astrophysics - Cosmology and Nongalactic Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
41+
year = "2019",
42+
month = "Dec",
43+
volume = {490},
44+
number = {3},
45+
pages = {4237-4253},
46+
doi = {10.1093/mnras/stz2718},
47+
archivePrefix = {arXiv},
48+
eprint = {1902.10149},
49+
primaryClass = {astro-ph.CO},
50+
adsurl = {https://ui.adsabs.harvard.edu/abs/2019MNRAS.490.4237L},
51+
}
52+
53+
@ARTICLE{pySELFI2,
54+
author = {{Leclercq}, Florent},
55+
title = "{Simulation-based inference of Bayesian hierarchical models while checking for model misspecification}",
56+
journal = {Physical Sciences Forum},
57+
keywords = {Statistics - Methodology, Astrophysics - Instrumentation and Methods for Astrophysics, Mathematics - Statistics Theory, Quantitative Biology - Populations and Evolution, Statistics - Machine Learning},
58+
year = "2022",
59+
month = "Sep",
60+
volume = {5},
61+
pages = {4},
62+
doi = {10.3390/psf2022005004},
63+
archivePrefix = {arXiv},
64+
eprint = {2209.11057},
65+
primaryClass = {stat.ME},
66+
adsurl = {https://ui.adsabs.harvard.edu/abs/2022arXiv220911057L},
67+
}
4868

4969
## License ##
5070

51-
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.
71+
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](https://github.com/florent-leclercq/pyselfi/blob/master/LICENSE), distributed with the source code in a text file of the same name.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pyselfi_examples.lotkavolterra.model.blackbox_LV module
2+
=======================================================
3+
4+
.. automodule:: pyselfi_examples.lotkavolterra.model.blackbox_LV
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/source/api/blackboxes_api.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Example blackboxes API
44
Gaussian random field
55
---------------------
66

7-
Modules are located in ``pyselfi_examples/grf/model/``.
7+
Modules are located in ``src/pyselfi_examples/grf/model/``.
88

99
.. currentmodule:: pyselfi_examples.grf.model
1010

@@ -20,7 +20,7 @@ Modules are located in ``pyselfi_examples/grf/model/``.
2020
Galaxy survey
2121
-------------
2222

23-
Modules are located in ``pyselfi_examples/simbelmyne/model/``.
23+
Modules are located in ``src/pyselfi_examples/simbelmyne/model/``.
2424

2525
.. currentmodule:: pyselfi_examples.simbelmyne.model
2626

@@ -32,3 +32,19 @@ Modules are located in ``pyselfi_examples/simbelmyne/model/``.
3232
:maxdepth: 2
3333

3434
blackboxes/simbelmyne
35+
36+
Lotka-Volterra system
37+
---------------------
38+
39+
Modules are located in ``src/pyselfi_examples/lotkavolterra/model/``.
40+
41+
.. currentmodule:: pyselfi_examples.lotkavolterra.model
42+
43+
.. autosummary::
44+
blackbox_LV
45+
46+
.. toctree::
47+
:hidden:
48+
:maxdepth: 2
49+
50+
blackboxes/lotkavolterra

doc/source/api/inference_api.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Modelling & Inference API
44
Primordial power spectrum
55
-------------------------
66

7-
Modules are located in ``pyselfi/power_spectrum/``.
7+
Modules are located in ``src/pyselfi/power_spectrum/``.
88

99
.. currentmodule:: pyselfi
1010

@@ -18,3 +18,21 @@ Modules are located in ``pyselfi/power_spectrum/``.
1818

1919
power_spectrum/prior
2020
power_spectrum/selfi
21+
22+
Lotka-Volterra system
23+
---------------------
24+
25+
Modules are located in ``src/pyselfi/lotkavolterra/``.
26+
27+
.. currentmodule:: pyselfi
28+
29+
.. autosummary::
30+
lotkavolterra.prior
31+
lotkavolterra.selfi
32+
33+
.. toctree::
34+
:hidden:
35+
:maxdepth: 2
36+
37+
lotkavolterra/prior
38+
lotkavolterra/selfi
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pyselfi.lotkavolterra.prior module
2+
===================================
3+
4+
.. automodule:: pyselfi.lotkavolterra.prior
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.lotkavolterra.selfi module
2+
===================================
3+
4+
.. automodule:: pyselfi.lotkavolterra.selfi
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/source/conf.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#!/usr/bin/env python
22
#-------------------------------------------------------------------------------------
3-
# pySELFI v1.2 -- doc/source/conf.py
4-
# Copyright (C) 2019-2019 Florent Leclercq.
5-
#
3+
# pySELFI v2.0 -- doc/source/conf.py
4+
# Copyright (C) 2019-2023 Florent Leclercq.
5+
#
66
# This file is part of the pySELFI distribution
77
# (https://github.com/florent-leclercq/pyselfi/)
8-
#
9-
# This program is free software: you can redistribute it and/or modify
10-
# it under the terms of the GNU General Public License as published by
8+
#
9+
# This program is free software: you can redistribute it and/or modify
10+
# it under the terms of the GNU General Public License as published by
1111
# the Free Software Foundation, version 3.
12-
#
13-
# This program is distributed in the hope that it will be useful, but
14-
# WITHOUT ANY WARRANTY; without even the implied warranty of
15-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
#
13+
# This program is distributed in the hope that it will be useful, but
14+
# WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1616
# General Public License for more details.
17-
#
17+
#
1818
# The text of the license is located in the root directory of the source package.
1919
#-------------------------------------------------------------------------------------
2020

@@ -46,11 +46,11 @@
4646
# -- Project information -----------------------------------------------------
4747

4848
project = 'pySELFI'
49-
copyright = '2018-2019, Florent Leclercq'
49+
copyright = '2018-2023, Florent Leclercq'
5050
author = 'Florent Leclercq'
5151

5252
# The full version, including alpha/beta/rc tags
53-
release = '1.2'
53+
release = '2.0'
5454

5555
# -- General configuration ---------------------------------------------------
5656

@@ -89,7 +89,7 @@
8989
#
9090
# This is also used if you do content translation via gettext catalogs.
9191
# Usually you set "language" from the command line for these cases.
92-
language = None
92+
language = 'en'
9393

9494
# List of patterns, relative to source directory, that match files and
9595
# directories to ignore when looking for source files.

doc/source/description.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
|arXiv| |GitHub version| |GitHub commits| |DOI| |GPLv3 license| |PyPI version| |Docs| |Build Status| |Website florent-leclercq.eu|
1+
|arXiv1| |arXiv2| |GitHub version| |GitHub commits| |DOI| |GPLv3 license| |PyPI version| |Docs| |Website florent-leclercq.eu|
22

3-
.. |arXiv| image:: https://img.shields.io/badge/astro--ph.CO-arxiv%3A1902.10149-B31B1B.svg?style=flat
3+
.. |arXiv1| image:: https://img.shields.io/badge/astro--ph.CO-arxiv%3A1902.10149-B31B1B.svg?style=flat
44
:target: https://arxiv.org/abs/1902.10149
55

6+
.. |arXiv2| image:: https://img.shields.io/badge/astro--ph.CO-arxiv%3A2209.11057-B31B1B.svg?style=flat
7+
:target: https://arxiv.org/abs/2209.11057
8+
69
.. |GitHub version| image:: https://img.shields.io/github/tag/florent-leclercq/pyselfi.svg?label=version
710
:target: https://github.com/florent-leclercq/pyselfi
811

9-
.. |GitHub commits| image:: https://img.shields.io/github/commits-since/florent-leclercq/pyselfi/v1.2.svg
12+
.. |GitHub commits| image:: https://img.shields.io/github/commits-since/florent-leclercq/pyselfi/v2.0.svg
1013
:target: https://github.com/florent-leclercq/pyselfi/commits
1114

1215
.. |DOI| image:: https://zenodo.org/badge/197575311.svg
@@ -21,9 +24,6 @@
2124
.. |Docs| image:: https://readthedocs.org/projects/pyselfi/badge/
2225
:target: http://pyselfi.readthedocs.io/en/latest/
2326

24-
.. |Build Status| image:: https://travis-ci.com/florent-leclercq/pyselfi.svg?branch=master
25-
:target: https://travis-ci.com/florent-leclercq/pyselfi
26-
2727
.. |Website florent-leclercq.eu| image:: https://img.shields.io/website-up-down-green-red/http/pyselfi.florent-leclercq.eu.svg
2828
:target: http://pyselfi.florent-leclercq.eu/
2929

0 commit comments

Comments
 (0)