test_load_data.py 1016 B

12345678910111213141516171819202122232425262728293031323334
  1. """
  2. Example script to test the loading of the data
  3. """
  4. import os
  5. # determine working directory (data_challenge/ directory)
  6. working_dir = os.path.dirname(os.path.realpath(__file__))
  7. import numpy as np
  8. import quantities as pq
  9. import neo
  10. path_data = './data/'
  11. # load data
  12. print('loading experimental data')
  13. experimental_data = np.load(path_data + 'experimental_data.npy').item()
  14. print('done')
  15. print('loading dithered data')
  16. dithered_data = np.load(path_data + 'dithered_data.npy').item()
  17. print('done')
  18. print('loading poisson data')
  19. poisson_data = np.load(path_data + 'poisson_data.npy').item()
  20. print('done')
  21. print('loading gamma data')
  22. gamma_data = np.load(path_data + 'gamma_data.npy').item()
  23. print('done')
  24. print('loading baseline correlation data')
  25. baseline_correlation_data = \
  26. np.load(path_data + 'baseline_correlation_data.npy').item()
  27. print('done')
  28. print('loading functional correlation data')
  29. functional_correlation_data = \
  30. np.load(path_data + 'functional_correlation_data.npy').item()
  31. print('done')