1
1

exampleio.py 893 B

123456789101112131415161718192021222324252627282930
  1. """
  2. neo.io have been split in 2 level API:
  3. * neo.io: this API give neo object
  4. * neo.rawio: this API give raw data as they are in files.
  5. Developper are encourage to use neo.rawio.
  6. When this is done the neo.io is done automagically with
  7. this king of following code.
  8. Author: sgarcia
  9. """
  10. from neo.io.basefromrawio import BaseFromRaw
  11. from neo.rawio.examplerawio import ExampleRawIO
  12. class ExampleIO(ExampleRawIO, BaseFromRaw):
  13. name = 'example IO'
  14. description = "Fake IO"
  15. # This is an inportant choice when there are several channels.
  16. # 'split-all' : 1 AnalogSignal each 1 channel
  17. # 'group-by-same-units' : one 2D AnalogSignal for each group of channel with same units
  18. _prefered_signal_group_mode = 'group-by-same-units'
  19. def __init__(self, filename=''):
  20. ExampleRawIO.__init__(self, filename=filename)
  21. BaseFromRaw.__init__(self, filename)