This file is indexed.

/usr/share/pyshared/dipy/utils/spheremakers.py is in python-dipy 0.5.0-3.

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
23
24
25
26
""" Factory function(s) for spheres """

from dipy.data import get_sphere

def sphere_vf_from(input):
    """ Return sphere vertices and faces from a variety of inputs

    Parameters
    ----------
    input : str or tuple or dict
        * str - a named sphere from dipy.data.get_sphere
        * tuple - the vertex, face tuple all ready to go
        * dict - with keys 'vertices', 'faces'

    Returns
    -------
    vertices : ndarray
        N,3 ndarray of sphere vertex coordinates
    faces : ndarray
        Indices into `vertices`
    """
    if hasattr(input, 'keys'):
        return input['vertices'], input['faces']
    if isinstance(input, basestring):
        return get_sphere(input)
    return input