Source code for pyccl.errors

[docs]class CCLError(RuntimeError): """A CCL-specific RuntimeError""" def __repr__(self): return 'pyccl.CCLError(%r)' % (str(self)) def __eq__(self, other): return repr(self) == repr(other) def __hash__(self): return hash(repr(self))
[docs]class CCLWarning(RuntimeWarning): """A CCL-specific warning""" def __repr__(self): return 'pyccl.CCLWarning(%r)' % (str(self)) def __eq__(self, other): return repr(self) == repr(other) def __hash__(self): return hash(repr(self))