nengo-1.4 icon indicating copy to clipboard operation
nengo-1.4 copied to clipboard

reload of script gen script not working

Open celiasmith opened this issue 12 years ago • 4 comments

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 transform = [[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], TypeError: list indices must be integers

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)

celiasmith avatar Nov 20 '12 18:11 celiasmith

even easier, just load the .py file for that example ('structure.py' in the chapter4 directory), export it and load it... crash!

celiasmith avatar Nov 20 '12 19:11 celiasmith

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.

e2crawfo avatar Nov 26 '12 20:11 e2crawfo

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.

celiasmith avatar Nov 26 '12 22:11 celiasmith

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.

naruyan avatar Nov 27 '12 22:11 naruyan