nengo-1.4
nengo-1.4 copied to clipboard
reload of script gen script not working
The original network is as described in chp 4 of the book tutorial. This is essentially just a 20D binding network. I generated the script and when reloading got:
File "/Users/celiasmi/Documents/nengo/Structured_Representation.py", line 41, in
at ca.nengo.ui.lib.util.UserMessages.showError(UserMessages.java:46)
at ca.nengo.ui.lib.util.UserMessages.showError(UserMessages.java:18)
at ca.nengo.ui.actions.OpenNeoFileAction$1.action(OpenNeoFileAction.java:96)
at ca.nengo.ui.lib.actions.StandardAction.doActionInternal(StandardAction.java:131)
at ca.nengo.ui.lib.objects.activities.TrackedAction.doActionInternal(TrackedAction.java:53)
at ca.nengo.ui.lib.actions.StandardAction$2.run(StandardAction.java:169)
even easier, just load the .py file for that example ('structure.py' in the chapter4 directory), export it and load it... crash!
We designed it with just the GUI in mind, so a lot of the code only works if the calls come from there. A lot of the logic is actually in the template functions, which don't get called by make_convolution. I'll see what I can do though.
Actually, the first time I built this, I did it all in the gui (following the directions in Chp 4). You're right, loading the script isn't a good test.
This specific bug is fixed, but in the more general case, things done with script may not be able to be generated by the script generator. So far the things that are definitely not supported are the SPA and HRR tutorials. The other tutorials should work once bug #349 is fixed.