wcosmo.utils#

Helper functions that are not directly relevant to cosmology.

Functions

autodoc(func)

Simple decorator to mark that a docstring needs formatting

disable_units()

Disable the use of astropy units throughout the package

enable_units()

Enable the use of astropy units throughout the package

maybe_jit(func, *args, **kwargs)

A decorator to jit the function if using jax.

method_autodoc([alt])

Simple decorator to mark that a docstring needs formatting.

strip_units(value)

Strip units from a value if they are present also make sure that the result is not a numpy.float64.