Personal I‘d like to recommend you to use the newest version of Nestml and to adapt your old neuron model to the new syntax.
For doing it you have to compare a nestml model of any neuron in the current nestml version to the old one.
Normally you have to put a word “end” at the end of each segment in model
Hope that help
BR Binh

Gesendet mit der mobilen Mail App

Am 13.06.24 um 10:59 schrieb Chris Huyck

Von: "Chris Huyck" <C.Huyck@mdx.ac.uk>
Datum: 13. Juni 2024
An: "NEST User Mailing List" <users@nest-simulator.org>
Cc:
Betreff: [NEST Users] nestml syntax problem

 

I was using an old version of nest (3.5) and nestml.  Someone sent me a nestml model, and that worked.  I wanted to make my own model, but the tutorials had a different format.  In particular, it seems like the first line of code in the tutorials start with model, and the old version started with neuron of synapse.

 

So, I thought it was time to upgrade, so installed nest 3.7, and pip-ed nestml.  (I also installed PyNN as that's the way I typically work.) When I imported generate_target (through python 3.12), I got the typical PyGSL warning; I think that's because I'm using python 3.12 not 3.11, and I don't think it matters in this case.

 

Then I ran the generate_target and I got an error mismatched input 'model' expecting {newline, 'neuron', 'synapse}

 

I expect there's something like a yacc table that specifies the syntax, and somehow I've got the old syntax.

I've tried it with several version of nestml 7.0.2, 7.0.0, 6.0.0 and 5.0.0. I think 5.0.0 had the old syntax.   I've tried several models from the library, and the Izhikevich tutorial.

 

Any thoughts about how to fix it? 

-Chris