__init__.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # -*- coding: utf-8 -*-
  2. """
  3. :mod:`neo.core` provides classes for storing common electrophysiological data
  4. types. Some of these classes contain raw data, such as spike trains or
  5. analog signals, while others are containers to organize other classes
  6. (including both data classes and other container classes).
  7. Classes from :mod:`neo.io` return nested data structures containing one
  8. or more class from this module.
  9. Classes:
  10. .. autoclass:: Block
  11. .. autoclass:: Segment
  12. .. autoclass:: ChannelIndex
  13. .. autoclass:: Unit
  14. .. autoclass:: AnalogSignal
  15. .. autoclass:: IrregularlySampledSignal
  16. .. autoclass:: Event
  17. .. autoclass:: Epoch
  18. .. autoclass:: SpikeTrain
  19. """
  20. # needed for python 3 compatibility
  21. from __future__ import absolute_import, division, print_function
  22. from neo.core.block import Block
  23. from neo.core.segment import Segment
  24. from neo.core.channelindex import ChannelIndex
  25. from neo.core.unit import Unit
  26. from neo.core.analogsignal import AnalogSignal
  27. from neo.core.irregularlysampledsignal import IrregularlySampledSignal
  28. from neo.core.event import Event
  29. from neo.core.epoch import Epoch
  30. from neo.core.spiketrain import SpikeTrain
  31. # Block should always be first in this list
  32. objectlist = [Block, Segment, ChannelIndex,
  33. AnalogSignal, IrregularlySampledSignal,
  34. Event, Epoch, Unit, SpikeTrain]
  35. objectnames = [ob.__name__ for ob in objectlist]
  36. class_by_name = dict(zip(objectnames, objectlist))