[nengo-user] Problem with "Generate Script"

Daniel Rasmussen dhrsmss at gmail.com
Thu Feb 12 17:21:40 EST 2015


Hi Markus,

You're right, the generate script feature often doesn't work properly.  It
was kind of an experimental feature, which we probably shouldn't have put
into the stable release.  It should work for simple networks, but anything
elaborate (such as SPA networks) will tend to break it, as you've found.
If you want to learn how the scripting system works, I'd recommend the
tutorials here instead http://www.nengo.ca/docs/html/scripting.html (or
https://pythonhosted.org/nengo/ if you want to learn the new Nengo 2.0
syntax).  Sorry about that!

As for direct mode, you should be able to access that by right-clicking on
the object (Ensemble or Network), going to the "Mode" submenu, and then
selecting the mode you want.

Daniel



On 9 February 2015 at 18:40, Markus Lohmeyer <markus.lohmeyer at gmx.de> wrote:

> Dear nengo-team, dear nengo-users,
>
> I discovered nengo a few month ago and now I am modeling relational
> reasoning as the subject for my master thesis. Doing so, I run into
> several problems, I hope you can help me with some of them. First of
> all: All problems occurred on both of my computer systems, so it seems
> these are general problems. My systems are:
>
> System 1:
> Ubuntu 14.10 (all updates)
> Java 7.25
> Python 2.7.8
> nengo-eb57aaa and nengo-d37a2c3 (I tried both)
>
> System 2:
> Win 7 64bit (all updates)
> Java 8.31
> Python 3.4.1
> nengo-eb57aaa and nengo-d37a2c3 (I tried both)
>
> First, the big problem:
>
> The "Generate Script" function does not work properly (is at least my
> impression). If the model contains the Thalamus template I had no chance
> to create a script from it. Every time I tried, I got the error message:
>
> "Could not perform action: java.lang.ClassCastExeption:
> java.lang.integer cannot be cast to java.lang.Double".
>
> This seems a little improved in the latest (unstable) nengo version
> (nengo-d37a2c3), because the Thalamus alone does not evoke this problem
> anymore (unlike version eb57aaa), but it still occurs in larger
> networks. So, I got the mentioned error message every time it was
> important (even with nengo-d37a2c3) which is a real pity because it
> would help learning nengo a lot. If someone has a solution or can
> determine when this problem appears exactly, please let me know.
>
> Additionally, automatically generated scripts (those without a Thalamus)
> use commas to separate the decimal place (even on my English Win 7). So,
> I have to change this by hand every time (and needed a lot of time to
> figure out the problem in the first place). If someone knows the reason
> for this (Ubuntu is German / Win 7 English same problem one both
> systems) I really would like to know the answer.
>
>
> Here some minor problems:
>
> 1. If I remove a BG-Rule Template from the Basal Ganglia and add a new
> rule, I run into trouble because the indexes are not reset. So, if I
> have two rules allowed in the Basal Ganglia and already specified two, I
> can not simply erase one and add another. I have to delete the Basal
> Ganglia too. This is not a problem, more an inconvenience but I wanted
> to mention it, maybe someone has a solution for this problem.
>
> 2. It seems there is no option to access the direct mode in the GUI, I
> can get access to it only via script. Is that correct?
>
>
> Hopefully waiting and sincerely yours,
>
> Markus
>
>
>
>
>
>
>
>
> _______________________________________________
> nengo-user mailing list
> nengo-user at ctnsrv.uwaterloo.ca
> http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://artsservices.uwaterloo.ca/pipermail/nengo-user/attachments/20150212/d06d8e64/attachment-0002.html>


More information about the nengo-user mailing list