Revision 87ce2d5d5d491e8629b62b99f95a9299650c2d60 authored by Arthur Tolley on 06 April 2021, 14:13:55 UTC, committed by GitHub on 06 April 2021, 14:13:55 UTC
1 parent 4022136
sampler_inheritance_diagrams.py
# Creates RST for the sampler inheritance diagrams
from __future__ import print_function
from pycbc.inference.sampler import samplers
fname = 'sampler_inheritance_diagrams.rst'
tmplt = """.. _inheritance-{name}:
* ``{name}``:
.. inheritance-diagram:: {module}.{clsname}
:parts: 3
|
"""
fp = open(fname, 'w')
for sampler, cls in sorted(samplers.items()):
out = tmplt.format(name=sampler, clsname=cls.__name__,
module=cls.__module__)
print(out, file=fp)
fp.close()
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...