Hello Pooja,

Firstly, thanks for the quick response. 

I’ve taken the hill_tononi_neuron model from  Models library — NESTML documentation 1.0.0 documentation, and it gives me the an error mismatched input 'model' expecting {newline, 'neuron', 'synapse}.  I change model to neuron in the .nestml file, and I get an extraneous input ‘onCondition’ error.  If I try with izhekivich_task.nestml from raw.githubusercontent.com/nest/nestml/master/doc/tutorials/izhikevich/izhikevich_task.nestml I get the ‘model’ error;  if I change model to neuron I get an extraneous input ‘onRecieve’ error.  Are there any working models in nestml 7.0.2 that work?

-Chris

 

 

From: Babu, Pooja <p.babu@fz-juelich.de>
Sent: 13 June 2024 10:40
To: NEST User Mailing List <users@nest-simulator.org>
Subject: [NEST Users] Re: nestml syntax problem

 

You don't often get email from p.babu@fz-juelich.de. Learn why this is important

Hello Chris,

 

The latest release of NESTML (v7.0.2) uses the “neuron” or “synapse” at the beginning of the model definition. We have unified this in our latest changes to the language where they are replaced by “model”, however, this is not yet released.

 

It looks like you have conflicting versions of NESTML installed. I would suggest you uninstall all the old NESTML instances and install it again via pip.

 

The pip-installed version should have models that begin with either “neuron” or “synapse”. The corresponding grammar can be found here: https://github.com/nest/nestml/tree/v7.0.2/pynestml/grammars

 

Apologies for the confusion. We are in the process of doing a pre-release of the new language changes soon. 

 

Hope this helps!

 

Best regards,

Pooja



On 13. Jun 2024, at 11:11, thanh-binh.to@online.de wrote:

 

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

 

 

 

 

_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org