From c7b28173ca9a957e1ca36c8ba22fb2a1aa39c7f8 Mon Sep 17 00:00:00 2001 From: Prabhjot Singh Date: Sat, 5 Mar 2016 19:26:29 +0530 Subject: [PATCH] Update SegmentEntity.py --- neuroshare/SegmentEntity.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/neuroshare/SegmentEntity.py b/neuroshare/SegmentEntity.py index 1c09fe7..a25ad9c 100644 --- a/neuroshare/SegmentEntity.py +++ b/neuroshare/SegmentEntity.py @@ -1,10 +1,11 @@ from .Entity import Entity - class SegmentSource(object): - """Segment sources provide access to the metadata of individual sources - of a :class:`SegmentEntity`""" - def __init__(self, segment, source_id, info): + """ + Segment sources provide access to the metadata of individual sources + of a :class:`SegmentEntity` + """ + def __init__(self, segment=None, source_id=None, info=None): self._segment = segment self._source_id = source_id self._info = info @@ -103,9 +104,11 @@ def __iter__(self): class SegmentEntity(Entity): - """Segment entities contain cutouts of continuously sampled analog signals from + """ + Segment entities contain cutouts of continuously sampled analog signals from one or more sources that are usually short in time. Most prominent example are - waveforms of action potentials from one ore more electrodes.""" + waveforms of action potentials from one ore more electrodes. + """ def __init__(self, nsfile, eid, info): from copy import copy self._source_infos = info['SourceInfos']