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.

test_axonio.py 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # -*- coding: utf-8 -*-
  2. """
  3. Tests of neo.io.axonio
  4. """
  5. # needed for python 3 compatibility
  6. from __future__ import absolute_import
  7. import sys
  8. import unittest
  9. from neo.io import AxonIO
  10. from neo.test.iotest.common_io_test import BaseTestIO
  11. class TestAxonIO(BaseTestIO, unittest.TestCase):
  12. files_to_test = ['File_axon_1.abf',
  13. 'File_axon_2.abf',
  14. 'File_axon_3.abf',
  15. 'File_axon_4.abf',
  16. 'File_axon_5.abf',
  17. 'File_axon_6.abf',
  18. 'File_axon_7.abf',
  19. ]
  20. files_to_download = files_to_test
  21. ioclass = AxonIO
  22. def test_read_protocol(self):
  23. for f in self.files_to_test:
  24. filename = self.get_filename_path(f)
  25. reader = AxonIO(filename=filename)
  26. bl = reader.read_block(lazy=True)
  27. if bl.annotations['abf_version'].startswith('2'):
  28. reader.read_protocol()
  29. if __name__ == "__main__":
  30. unittest.main()