/usr/share/pyshared/neo/core/epoch.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 | from neo.core.baseneo import BaseNeo
import quantities as pq
class Epoch(BaseNeo):
"""
Similar to :class:`Event` but with a duration.
Useful for describing a period, the state of a subject, ...
*Usage*:
TODO
*Required attributes/properties*:
:time: (quantity)
:duration: (quantity)
:label: (str)
Recommended attributes/properties:
:name:
:description:
:file_origin:
"""
def __init__(self, time, duration, label, name=None, description=None,
file_origin=None, **annotations):
"""Initialize a new Epoch."""
BaseNeo.__init__(self, name=name, file_origin=file_origin,
description=description, **annotations)
self.time = time
self.duration = duration
self.label = label
self.segment = None
|