utils

Module: utils

Inheritance diagram for nipy.utils:

digraph inheritance1927e97648 { rankdir=LR; size="8.0, 12.0"; "nipy.utils.VisibleDeprecationWarning" [URL="#nipy.utils.VisibleDeprecationWarning",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Visible deprecation warning."]; }

General utilities for code support.

These are modules that we (broadly-speaking) wrote; packages that other people wrote, that we ship, go in the nipy.externals tree.

VisibleDeprecationWarning

class nipy.utils.VisibleDeprecationWarning[source]

Bases: UserWarning

Visible deprecation warning.

Python does not show any DeprecationWarning by default. Sometimes we do want to show a deprecation warning, when the deprecation is urgent, or the usage is probably a bug.

__init__($self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.