pyphi.measures.distribution.np_suppress#

class pyphi.measures.distribution.np_suppress[source]#

Bases: errstate, ContextDecorator

Decorator to suppress NumPy warnings about divide-by-zero and multiplication of NaN.

Note

This should only be used in cases where you are sure that these warnings are not indicative of deeper issues in your code.