neuralynxio.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- coding: utf-8 -*-
  2. """
  3. Class for reading data from Neuralynx files.
  4. This IO supports NCS, NEV and NSE file formats.
  5. Depends on: numpy
  6. Supported: Read
  7. Author: Julia Sprenger, Carlos Canova
  8. """
  9. # needed for python 3 compatibility
  10. from __future__ import absolute_import, division
  11. from neo.io.basefromrawio import BaseFromRaw
  12. from neo.rawio.neuralynxrawio import NeuralynxRawIO
  13. class NeuralynxIO(NeuralynxRawIO, BaseFromRaw):
  14. """
  15. Class for reading data from Neuralynx files.
  16. This IO supports NCS, NEV, NSE and NTT file formats.
  17. NCS contains signals for one channel
  18. NEV contains events
  19. NSE contains spikes and waveforms for mono electrodes
  20. NTT contains spikes and waveforms for tetrodes
  21. """
  22. _prefered_signal_group_mode = 'group-by-same-units'
  23. mode = 'dir'
  24. def __init__(self, dirname, use_cache=False, cache_path='same_as_resource'):
  25. NeuralynxRawIO.__init__(self, dirname=dirname,
  26. use_cache=use_cache, cache_path=cache_path)
  27. BaseFromRaw.__init__(self, dirname)