Commit 9fbbe293 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Update documentation

parent af5c99b6
......@@ -34,7 +34,7 @@ function template that implements the desired algorithm:
:linenos:
The second part is a compilation unit :download:`kcore.cc <kcore.cc>`
that setups the Python-C++ interface:
that sets up the Python-C++ interface:
.. literalinclude:: kcore.cc
:language: c++
......
......@@ -27,6 +27,8 @@ Drawing with matplotlib is done by calling
.. testsetup::
import matplotlib
backend = matplotlib.get_backend()
gt.seed_rng(44)
.. testcode::
......@@ -68,12 +70,11 @@ Drawing with matplotlib is done by calling
plt.subplots_adjust(left=0.08, right=0.99, top=0.99, bottom=0.06)
fig.savefig("gt-mpl.pdf")
.. testcleanup::
plt.switch_backend(backend)
conv_png("gt-mpl.pdf")
.. figure:: gt-mpl.png
:width: 90%
......
......@@ -60,7 +60,7 @@ except RuntimeError:
def conv_png(f):
subprocess.check_output(['pdftocairo', "-png", "-singlefile", "-transp",
"-r", "600", f])
"-r", "300", f])
prandom.seed(42)
np.random.seed(42)
......
......@@ -1236,7 +1236,7 @@ class IsingBaseBlockState(DynamicsBlockStateBase):
has_zero=False, **kwargs):
r"""Base state for network reconstruction based on the Ising model, using the
stochastic block model as a prior. This class is not supposed to be
instantiated directly. Instead one of it's specialized subclasses must
instantiated directly. Instead one of its specialized subclasses must
be used, which have the same signature: :class:`IsingGlauberBlockState`,
:class:`PseudoIsingBlockState`, :class:`CIsingGlauberBlockState`,
:class:`PseudoCIsingBlockState`.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment