Citations

class pybamm.Citations[source]

Entry point to citations management. This object may be used to record Bibtex citation information and then register that a particular citation is relevant for a particular simulation. For a list of all possible citations, see pybamm/CITATIONS.txt

Examples

>>> import pybamm
>>> pybamm.citations.register("Sulzer2021")
>>> pybamm.print_citations("citations.txt")
print(filename=None, output_format='text')[source]

Print all citations that were used for running simulations.

Parameters:filename (str, optional) – Filename to which to print citations. If None, citations are printed to the terminal.
read_citations()[source]

Read the citations text file

register(key)[source]

Register a paper to be cited. The intended use is that register() should be called only when the referenced functionality is actually being used.

Parameters:key (str) – The key for the paper to be cited
pybamm.print_citations(filename=None, output_format='text')[source]

See Citations.print()