Repository navigation
Remove examples and NengoDL builders - #325
Conversation
e0b6c89 to
9de648c
Compare
9de648c to
9293647
Compare
|
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. |
|
Updated this with the latest NengoBones. Your commits LGTM @hunse 👍 |
hunse
left a comment
There was a problem hiding this comment.
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.
| install_req = [ | ||
| "jinja2", | ||
| "nengo>=3.1.0", | ||
| "nengo-extras>=0.5", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Was easy to change, so I've moved it to "optional" and "tests" 🚀
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.
These have been moved to NengoExamples and NengoExtras.