nengo / nengo-1.4

Create and run detailed neural simulations
http://www.nengo.ai/nengo-1.4
96 stars 22 forks source link

Exception loading nef file from the repository nengo 1.4 #372

Open neuronicprogrammer opened 11 years ago

neuronicprogrammer commented 11 years ago

Using nengo v1.4 attempting to load Normalization.3k.good.nef from the model repository java.lang.ClassCastException: org.python.core.PyType cannot be cast as org.python.core.PyClass Tool does not seem to complete the load of serialised Java objects I was wondering if the nef files are sensitive to versions of nengo, python or java. The examples respository does not have a field for noting just which version of nengo the model was created in and from which the nef file was save from.

tbekolay commented 11 years ago

Unfortunately the nef files are sensitive to the version of whatever is serialized; in this case, it looks like a Python script was used in creating the nef file, but it was created with an older version of Jython (likely 2.2).

We transitioned a while ago from the nef files to Python scripts as the primary method of distributing networks; however, the examples repository does contain a lot of old published models that were created before the switch to Python scripts. It's important to ensure that these are still available; can you point us to which model is not loading? We'll likely have to do this on an individual basis.

neuronicprogrammer commented 11 years ago

Its Normalization for probabilistic inference with neurons see http://models.nengo.ca/node/14 Thanks for considering to up date it.