Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

exampleio.py 917 B

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