/usr/lib/python2.7/dist-packages/dipy/align/__init__.py is in python-dipy 0.10.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import numpy as np
floating = np.float32
class Bunch(object):
def __init__(self, **kwds):
r"""A 'bunch' of values (a replacement of Enum)
This is a temporary replacement of Enum, which is not available
on all versions of Python 2
"""
self.__dict__.update(kwds)
VerbosityLevels = Bunch(NONE=0, STATUS=1, DIAGNOSE=2, DEBUG=3)
r""" VerbosityLevels
This enum defines the four levels of verbosity we use in the align
module.
NONE : do not print anything
STATUS : print information about the current status of the algorithm
DIAGNOSE : print high level information of the components involved in the
registration that can be used to detect a failing component.
DEBUG : print as much information as possible to isolate the cause of a bug.
"""
|