That’s exactly what I’m trying to do.  I merely want to load one of the modules from the website  Models library — NESTML documentation 1.0.0 documentation.  For example, I tried the hill_tononi_neuron.  When I try generate_target, I get the mismatched input 'model' expecting {newline, 'neuron', 'synapse} error.  I get a different code generation error if I change model to neuron.  I used the newest nestml version (7.0.2) for some time. I’m currently on 7.0.0, but it’s easy enough to change back.   

-Chris

 

 

From: thanh-binh.to@online.de <thanh-binh.to@online.de>
Sent: 13 June 2024 10:11
To: NEST User Mailing List <users@nest-simulator.org>
Subject: [NEST Users] Re: nestml syntax problem

 

You don't often get email from thanh-binh.to@online.de. Learn why this is important

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