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_stimfitio.py 907 B

123456789101112131415161718192021222324252627282930313233343536
  1. # -*- coding: utf-8 -*-
  2. """
  3. Tests of neo.io.stimfitio
  4. """
  5. # needed for python 3 compatibility
  6. from __future__ import absolute_import
  7. import sys
  8. try:
  9. import unittest2 as unittest
  10. except ImportError:
  11. import unittest
  12. from neo.io import StimfitIO
  13. from neo.io.stimfitio import HAS_STFIO
  14. from neo.test.iotest.common_io_test import BaseTestIO
  15. @unittest.skipIf(sys.version_info[0] > 2, "not Python 3 compatible")
  16. @unittest.skipUnless(HAS_STFIO, "requires stfio")
  17. class TestStimfitIO(BaseTestIO, unittest.TestCase):
  18. files_to_test = ['File_stimfit_1.h5',
  19. 'File_stimfit_2.h5',
  20. 'File_stimfit_3.h5',
  21. 'File_stimfit_4.h5',
  22. 'File_stimfit_5.h5',
  23. 'File_stimfit_6.h5',
  24. ]
  25. files_to_download = files_to_test
  26. ioclass = StimfitIO
  27. if __name__ == "__main__":
  28. unittest.main()