pybispectra.utils.set_precision#

pybispectra.utils.set_precision(precision: str) None[source]#

Set the precision of the outputs of PyBispectra classes and functions.

Attributes:
precisionstr

Precision to use. Accepts "single" (real values are numpy.float32 and complex values are numpy.complex64) and "double" (real values are numpy.float64 and complex values are numpy.complex128).

Notes

By default, PyBispectra uses double precision. Single precision may be desired to increase computational speed and reduce the likelihood of memory errors when handling large datasets.