This file is indexed.

/usr/share/pyshared/dipy/testing/spherepoints.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
27
28
''' Create example sphere points '''

import numpy as np

def _make_pts():
    ''' Make points around sphere quadrants '''
    thetas = np.arange(1,4) * np.pi/4
    phis = np.arange(8) * np.pi/4
    north_pole = (0,0,1)
    south_pole = (0,0,-1)
    points = [north_pole, south_pole]
    for theta in thetas:
        for phi in phis:
            x = np.sin(theta) * np.cos(phi)
            y = np.sin(theta) * np.sin(phi)
            z = np.cos(theta)
            points.append((x,y,z))
    return np.array(points)


sphere_points = _make_pts()


def _show_pts():
    ''' Show 3D scatter plot of sphere points; requires Mayavi '''
    from enthought.mayavi import mlab
    pts = sphere_points
    mlab.points3d(pts[:,0], pts[:,1], pts[:,2], scale_factor=0.2)