pyccl.errors module

exception pyccl.errors.CCLError[source]

Bases: RuntimeError

A CCL-specific RuntimeError

exception pyccl.errors.CCLWarning[source]

Bases: RuntimeWarning

A CCL-specific warning

exception pyccl.errors.CCLDeprecationWarning[source]

Bases: DeprecationWarning

A CCL-specific deprecation warning.

classmethod enable()[source]
classmethod disable()[source]
class pyccl.errors.warnings[source]

Bases: object

warn(**kwargs)[source]
pyccl.errors.update_warning_verbosity(verbosity)[source]

Update the level of verbosity of the CCL warnings. Available levels are “none”, “low”, and “high”. More warning messages will be output for higher verbosity levels. If “none”, no CCL-level warnings will be shown. The default verbosity is “low”. Note that unless the verbosity level is “high”, all C-level warnings will be omitted.

Parameters:

verbosity (str) – one of 'none', 'low' or 'high'.