Skip to content

Commit f9b3963

Browse files
Updates to documentation
1 parent 48a1368 commit f9b3963

File tree

7 files changed

+47
-23
lines changed

7 files changed

+47
-23
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
include README.rst
2+
recursive-include fgivenx/test/baseline_images/ *.pdf

README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fgivenx: Functional Posterior Plotter
33
=====================================
44
:fgivenx: Functional Posterior Plotter
55
:Author: Will Handley
6-
:Version: 2.1.10
6+
:Version: 2.1.11
77
:Homepage: https://github.com/williamjameshandley/fgivenx
88
:Documentation: http://fgivenx.readthedocs.io/
99

@@ -285,9 +285,10 @@ Pull requests are very welcome. Note that if you are going to propose drastic
285285
changes, be sure to open an issue for discussion first, to make sure that your
286286
PR will be accepted before you spend effort coding it.
287287

288-
.. |image0| image:: https://github.com/williamjameshandley/fgivenx/blob/master/plot.png
289-
.. |image1| image:: https://github.com/williamjameshandley/fgivenx/blob/master/planck.png
288+
.. |image0| image:: https://raw.githubusercontent.com/williamjameshandley/fgivenx/master/plot.png
289+
.. |image1| image:: https://raw.githubusercontent.com/williamjameshandley/fgivenx/master/planck.png
290290

291291
Changelog
292292
=========
293+
:v2.1.11: Documentation upgrades
293294
:v2.1.10: Added changelog

docs/source/conf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,11 @@ def get_version(short=False):
4747
# ones.
4848
extensions = [
4949
'sphinx.ext.autodoc',
50-
'sphinx.ext.doctest',
5150
'sphinx.ext.intersphinx',
52-
'sphinx.ext.todo',
53-
'sphinx.ext.coverage',
5451
'sphinx.ext.mathjax',
5552
'sphinx.ext.ifconfig',
5653
'sphinx.ext.viewcode',
57-
'sphinx.ext.githubpages',
54+
'sphinx.ext.imgconverter',
5855
'numpydoc',
5956
]
6057

docs/source/fgivenx.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
fgivenx package
22
===============
33

4+
Module contents
5+
---------------
6+
7+
.. automodule:: fgivenx
8+
:members:
9+
:undoc-members:
10+
:show-inheritance:
11+
412
Submodules
513
----------
614

@@ -59,12 +67,3 @@ fgivenx.samples module
5967
:members:
6068
:undoc-members:
6169
:show-inheritance:
62-
63-
64-
Module contents
65-
---------------
66-
67-
.. automodule:: fgivenx
68-
:members:
69-
:undoc-members:
70-
:show-inheritance:

fgivenx/__init__.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
1+
"""
2+
3+
The main driving routines for this package are:
4+
5+
* :func:`plot_contours <fgivenx.drivers.plot_contours>`
6+
* :func:`plot_lines <fgivenx.drivers.plot_lines>`
7+
* :func:`plot_dkl <fgivenx.drivers.plot_dkl>`
8+
* :func:`samples_from_getdist_chains <fgivenx.samples.samples_from_getdist_chains>`
9+
10+
Example import and usage:
11+
12+
>>> import numpy
13+
>>> from fgivenx import plot_contours, plot_lines, plot_dkl, samples_from_getdist_chains
14+
>>>
15+
>>> file_root = '/my/getdist/file/root'
16+
>>> params = ['m', 'c']
17+
>>> samples = samples_from_getdist_chains(params, file_root)
18+
>>> x = numpy.linspace(-1, 1, 100)
19+
>>>
20+
>>> def f(x, theta):
21+
>>> m, c = params
22+
>>> y = m * x + c
23+
>>> return y
24+
>>>
25+
>>> plot_contours(f, x, samples)
26+
"""
27+
128
from fgivenx.drivers import plot_contours, plot_lines, plot_dkl
229
from fgivenx.samples import samples_from_getdist_chains

paper/paper.bib

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,12 @@ @ARTICLE{Higson2018
110110

111111
@article{zenodo,
112112
Author = {Handley, W},
113-
Date-Modified = {2018-07-12 11:21:25 +0000},
114-
doi = {10.5281/zenodo.1310715},
115-
Month = {Jul},
113+
doi = {10.5281/zenodo.1344097},
114+
Month = {Aug},
116115
Publisher = {Zenodo},
117-
Title = {fgivenx: v2.0},
116+
Title = {fgivenx: v2.1.10},
118117
Year = {2018},
119-
Bdsk-Url-1 = {http://dx.doi.org/10.5281/zenodo.1310715}
118+
Bdsk-Url-1 = {http://dx.doi.org/10.5281/zenodo.1344097}
120119
}
121120

122121
@unpublished{Higson2018b,

paper/paper.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ sensing [@Higson2018b].
7878
used in astronomy, but will be of use to scientists performing any Bayesian
7979
analysis which has predictive posteriors that are functions. The source code
8080
for ``fgivenx`` is available on
81-
[GitHub](https://github.com/williamjameshandley/fgivenx) and has been archived to
82-
Zenodo with the linked DOI: [@zenodo]
81+
[GitHub](https://github.com/williamjameshandley/fgivenx) and has been archived
82+
as ``v2.1.11`` to Zenodo with the linked DOI: [@zenodo]
8383

8484
# Acknowledgements
8585

0 commit comments

Comments
 (0)