This file is indexed.

/usr/share/pyshared/neo/core/epocharray.py is in python-neo 0.2.0-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
29
30
31
32
33
34
35
from neo.core.baseneo import BaseNeo

import numpy as np
import quantities as pq

class EpochArray(BaseNeo):
    """
    Array of epochs. Introduced for performance reason.
    An :class:`EpochArray` is prefered to a list of :class:`Epoch` objects.
    
    *Usage*:
        TODO
    
    *Required attributes/properties*:
        :times: (quantity array 1D)
        :durations: (quantity array 1D)
        :labels: (numpy.array 1D dtype='S') )
    
    *Recommended attributes/properties*:
        :name:
        :description:
        :file_origin:         
    """
    def __init__(self, times=np.array([])*pq.s, durations=np.array([])*pq.s,
                 labels=np.array([], dtype='S'), name=None, description=None,
                 file_origin=None, **annotations):
        """Initialize a new EpochArray."""
        BaseNeo.__init__(self, name=name, file_origin=file_origin,
                         description=description, **annotations)
        
        self.times = times
        self.durations = durations
        self.labels = labels
        
        self.segment =None