INM-6 / elephant

Elephant is the ElectroPhysiology Analysis Toolkit
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

[Bug] spike_train_synchrony module not importable #96

Closed essink closed 2 years ago

essink commented 2 years ago

Describe the bug I wanted to use the Synchrotool, but the spike_train_synchrony module was not importable.

To Reproduce

  1. pip install latest elephant
  2. import elephant
  3. elephant.spike_train_sychrony fails with:

Traceback (most recent call last): File "", line 1, in AttributeError: module 'elephant' has no attribute 'spike_train_sychrony'

Expected behavior Import should work.

Environment

If I am not mistaken, it is just not listed in the elephant/__init__.py.

mdenker commented 2 years ago

Hi @essink Thanks for the issue. Sadly, I'm not able to confirm the issue as of now (with python 3.10, pip install). Also, with the latest github dev release, I cannot reproduce the issue. Are you sure, the correct elephant is being imported?

essink commented 2 years ago

Hi @mdenker,

thanks for checking. Just reconfirmed my problem (with python 3.10, pip install), and indeed I reported it wrongly. I just edited the issue report.

Sorry!

mdenker commented 2 years ago

Ah, yes, this makes more sense. I'll make a PR on the main elephant git repo to include the sync module.

mdenker commented 2 years ago

Fixed by #518