Skip to content

Remove examples and NengoDL builders - #325

Merged
hunse merged 4 commits into
masterfrom
remove-extras
Jan 25, 2022
Merged

hunse merged 4 commits into
masterfrom
remove-extras

Conversation

@tbekolay

@tbekolay tbekolay commented Jan 4, 2022

Copy link
Copy Markdown
Member

These have been moved to NengoExamples and NengoExtras.

@tbekolay
tbekolay force-pushed the remove-extras branch 2 times, most recently from e0b6c89 to 9de648c Compare January 13, 2022 19:44
@tbekolay
tbekolay marked this pull request as ready for review January 13, 2022 19:44
@tbekolay

Copy link
Copy Markdown
Member Author

This PR is now ready for review. It won't pass CI until nengo/nengo-bones#160 and nengo/nengo-examples#28 are done and merged, but nothing in this PR will change if those PRs don't change significantly.

Comment thread nengo_loihi/tests/test_basic.py Resolved
@tbekolay

Copy link
Copy Markdown
Member Author

Updated this with the latest NengoBones. Your commits LGTM @hunse 👍

@hunse hunse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

The hardware tests errored, and I would like to see them pass because I made that change to the DecodeNeurons scale factor. If they error again, though, I might try to just run them manually.

Comment thread setup.py Outdated
install_req = [
"jinja2",
"nengo>=3.1.0",
"nengo-extras>=0.5",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thinking more about this; do we need to do this? It's only required to use the NengoDL builders, and if someone tries to use those neurons with NengoDL without NengoExtras, they'll get an error.

My biggest concern with this is it's one more dependency that we have to keep up to date both with this and with core Nengo. That said, we should be keeping it up to date, so as long as we stay on top of it, I'm OK.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We don't need to do it, but not doing makes it super fragile and easy to introduce cyclic dependencies. If you want to remove it and go through all that again you can try, but I would really like to get this release done, and it might require changes to NengoExtras that will need to get released again. NengoExtras itself is not hard to install once Nengo is installed so I'd really prefer to leave it, as it was a big time sink to get it working without cyclic dependencies.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't quite follow why it would be so fragile. I thought it's just a matter of moving it from install_req to tests_req in this file (since we do use it for tests). The import in the main code (in neurons.py) is already guarded against NengoExtras not being installed.

If it would be hard to change it, though, I'm fine to keep it here. I agree, we want to get the release out.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Was easy to change, so I've moved it to "optional" and "tests" 🚀

tbekolay and others added 4 commits January 25, 2022 14:23
And update the copyright year.

We now depend on NengoExtras as requiring the dependency is simpler.
However, since most people will not have it or have an old version,
we only raise an error when NengoExtras is not installed when they
try to build with NengoDL.
For improved performance on `test_basic.test_ens_ens` with
`weights=False` across a range of seeds.
@hunse
hunse merged commit 05df7e3 into master Jan 25, 2022
@hunse
hunse deleted the remove-extras branch January 25, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants