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_kwikio.py 695 B

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. """
  3. Tests of neo.io.kwikio
  4. """
  5. # needed for python 3 compatibility
  6. from __future__ import division
  7. import sys
  8. import unittest
  9. try:
  10. import h5py
  11. HAVE_H5PY = True
  12. except ImportError:
  13. HAVE_H5PY = False
  14. from neo.io import kwikio
  15. from neo.test.iotest.common_io_test import BaseTestIO
  16. @unittest.skipUnless(HAVE_H5PY, "requires h5py")
  17. @unittest.skipUnless(kwikio.HAVE_KWIK, "requires klusta")
  18. class TestKwikIO(BaseTestIO, unittest.TestCase):
  19. ioclass = kwikio.KwikIO
  20. files_to_test = ['neo.kwik']
  21. files_to_download = ['neo.kwik',
  22. 'neo.kwx',
  23. 'neo.dat']
  24. if __name__ == "__main__":
  25. unittest.main()