test_axonrawio.py 796 B

123456789101112131415161718192021222324252627282930
  1. import unittest
  2. from neo.rawio.axonrawio import AxonRawIO
  3. from neo.test.rawiotest.common_rawio_test import BaseTestRawIO
  4. class TestAxonRawIO(BaseTestRawIO, unittest.TestCase, ):
  5. rawioclass = AxonRawIO
  6. entities_to_test = [
  7. 'File_axon_1.abf', # V2.0
  8. 'File_axon_2.abf', # V1.8
  9. 'File_axon_3.abf', # V1.8
  10. 'File_axon_4.abf', # 2.0
  11. 'File_axon_5.abf', # V.20
  12. 'File_axon_6.abf', # V.20
  13. 'File_axon_7.abf', # V2.6
  14. 'test_file_edr3.abf', # EDR3
  15. ]
  16. files_to_download = entities_to_test
  17. def test_read_raw_protocol(self):
  18. reader = AxonRawIO(filename=self.get_filename_path('File_axon_7.abf'))
  19. reader.parse_header()
  20. reader.read_raw_protocol()
  21. if __name__ == "__main__":
  22. unittest.main()