Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes neo_tools unit tests to work with Neo 0.10.0+ #446

Merged
merged 17 commits into from
Mar 14, 2022

Conversation

mdenker
Copy link
Member

@mdenker mdenker commented Feb 4, 2022

In Neo 0.10.0, several helper functions from the test suite, such as fake_neo(), have been removed and replaced by a cleaner and more light-weight implementation. Elephant tests had been using this functionality in the neo_tools module. This PR changes all tests to use the new implementations from Neo 0.10., and bumps minimum Neo requirements accordingly. Several deprecated objects, such as Unit and ChannelGroup have also been removed from the tests.

@pep8speaks
Copy link

pep8speaks commented Feb 4, 2022

Hello @mdenker! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 184:80: E501 line too long (92 > 79 characters)

Comment last updated at 2022-02-23 11:15:57 UTC

@mdenker mdenker added the bugfix Fix for an indentified bug. label Feb 4, 2022
@mdenker mdenker self-assigned this Feb 4, 2022
@mdenker
Copy link
Member Author

mdenker commented Feb 7, 2022

Fixes #428

elephant/neo_tools.py Outdated Show resolved Hide resolved
Co-authored-by: Michael Denker <[email protected]>
@Moritz-Alexander-Kern Moritz-Alexander-Kern deleted the fix/fakeneo_missing branch February 11, 2022 11:30
@Moritz-Alexander-Kern Moritz-Alexander-Kern restored the fix/fakeneo_missing branch February 14, 2022 11:04
@Moritz-Alexander-Kern Moritz-Alexander-Kern added this to the v0.11.0 milestone Feb 22, 2022
@Moritz-Alexander-Kern Moritz-Alexander-Kern mentioned this pull request Mar 9, 2022
1 task
Copy link
Member

@Moritz-Alexander-Kern Moritz-Alexander-Kern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for making elephant ready for v0.10.0

@Moritz-Alexander-Kern Moritz-Alexander-Kern merged commit 854a5ca into NeuralEnsemble:master Mar 14, 2022
@Moritz-Alexander-Kern Moritz-Alexander-Kern deleted the fix/fakeneo_missing branch October 28, 2022 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix for an indentified bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] ImportError: cannot import name 'fake_neo' from 'neo.test.generate_datasets'
3 participants