__init__.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # -*- coding: utf-8 -*-
  2. """
  3. Elephant is a package for the analysis of neurophysiology data, based on Neo.
  4. :copyright: Copyright 2014-2019 by the Elephant team, see `doc/authors.rst`.
  5. :license: Modified BSD, see LICENSE.txt for details.
  6. """
  7. from . import (statistics,
  8. spike_train_generation,
  9. spike_train_correlation,
  10. unitary_event_analysis,
  11. cubic,
  12. spectral,
  13. kernels,
  14. spike_train_dissimilarity,
  15. spike_train_surrogates,
  16. signal_processing,
  17. current_source_density,
  18. change_point_detection,
  19. phase_analysis,
  20. sta,
  21. conversion,
  22. neo_tools,
  23. cell_assembly_detection,
  24. spade,
  25. waveform_features,
  26. gpfa)
  27. # not included modules on purpose:
  28. # parallel: avoid warns when elephant is imported
  29. try:
  30. from . import asset
  31. from . import spade
  32. except ImportError:
  33. # requirements-extras are missing
  34. # please install Elephant with `pip install elephant[extras]`
  35. pass
  36. def _get_version():
  37. import os
  38. elephant_dir = os.path.dirname(__file__)
  39. with open(os.path.join(elephant_dir, 'VERSION')) as version_file:
  40. version = version_file.read().strip()
  41. return version
  42. __version__ = _get_version()