This file is indexed.

/usr/lib/python2.7/dist-packages/pymc/tests/test_observation.py is in python-pymc 2.2+ds-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
23
24
25
26
27
28
from numpy.testing import *
from pymc.gp import *
from .test_mean import M, x
from .test_cov import C
from numpy import *
from copy import copy

M = copy(M)
C = copy(C)

# Impose observations on the GP
class test_observation(TestCase):
    def test(self):

        obs_x = array([-.5,.5])
        V = array([.002,.002])
        data = array([3.1, 2.9])
        observe(M=M,
                C=C,
                obs_mesh=obs_x,
                obs_V = V,
                obs_vals = data)

        # Generate realizations

        for i in range(3):
            f = Realization(M, C)
            f(x)