1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- # -*- coding: utf-8 -*-
- """
- :mod:`neo.core` provides classes for storing common electrophysiological data
- types. Some of these classes contain raw data, such as spike trains or
- analog signals, while others are containers to organize other classes
- (including both data classes and other container classes).
- Classes from :mod:`neo.io` return nested data structures containing one
- or more class from this module.
- Classes:
- .. autoclass:: Block
- .. autoclass:: Segment
- .. autoclass:: ChannelIndex
- .. autoclass:: Unit
- .. autoclass:: AnalogSignal
- .. autoclass:: IrregularlySampledSignal
- .. autoclass:: Event
- .. autoclass:: Epoch
- .. autoclass:: SpikeTrain
- """
- # needed for python 3 compatibility
- from __future__ import absolute_import, division, print_function
- from neo.core.block import Block
- from neo.core.segment import Segment
- from neo.core.channelindex import ChannelIndex
- from neo.core.unit import Unit
- from neo.core.analogsignal import AnalogSignal
- from neo.core.irregularlysampledsignal import IrregularlySampledSignal
- from neo.core.event import Event
- from neo.core.epoch import Epoch
- from neo.core.spiketrain import SpikeTrain
- # Block should always be first in this list
- objectlist = [Block, Segment, ChannelIndex,
- AnalogSignal, IrregularlySampledSignal,
- Event, Epoch, Unit, SpikeTrain]
- objectnames = [ob.__name__ for ob in objectlist]
- class_by_name = dict(zip(objectnames, objectlist))
|