Dear Charl,
thanks for your help!
It really looks straightforward and I started to implement it using the existing model of
the iaf_cond_exp.nestml, adapting it with your code.
It works very well!
Initially, I had some problems to run nestml. I got an error by just running the model
code without any adaptions using the keyword "shape".
``` errormessage
/pynesml/codegeneration/nest_codegenerator.py line 362, in solve_ode_with_shapes
return analysis(odes_shapes_json, enable_stiffness_check=False)
TypeError: analysis() got an unexpected keyword argument 'enable_stiffness_check'
```
Looking into the code of odetoolbox where analysis is imported from, the function expects
the argument `disable_stiffness_check`.
As suggested in
https://github.com/nest/nestml/issues/553, running the code with an older
version of odetoolbox (version 1.0) fixed the problem for me.
Best regards,
Hartmut