Thanks, but that's not my problem. The systems are clearly finding the file. They found it before I had my problem. (The library sits in a file in the nest directory. Nestml copies it from the targetdir to there.) If I set the LD_LIBRARY_PATH, it doesn't help. (I tried before, and just now.) The problem is that when you call nest (and I think nest.nest_init) any way, it has some problem. Another key indicator, from my initial email below, is that I can actually load the library, and use it if I run it in pynest without the NEST_MLMODULES variable.
(You are indeed right that nestml does not use the environment variable, at least the way I use it. I can run nestml.) I'm pretty sure that nest does use it in some fashion. I'm not sure if there is something cached away in a temporary file or variable. (I don't think it's a __pycache__ thing because the problem arises when I used the nest command (and get an SLI prompt)). -Chris
From: Charl Linssen nest-users@turingbirds.com Sent: 06 February 2025 11:44 To: users@nest-simulator.org Subject: [NEST Users] Re: export NEST_MLMODULES=nestmlmodule breaks nest
Hi Chris,
NEST_MLMODULES is not an environment variable used by NEST or NESTML, so it shouldn't affect anything. To help NEST find the "nestmlmodule.so" file that is generated by NESTML, you can use LD_LIBRARY_PATH (on the Mac: DYLD_LIBRARY_PATH) to specify the path.
Please let us know if this helps.
With kind regards, Charl
On Thu, Feb 6, 2025, at 12:29, Chris Huyck wrote:
I've been using nestml with pynn and nest for some time.
I think I built a new model (combining a synapse and a neuron) and it broke nest.
So, I can start an environment that has nest, and run nest (sli), pynest and pynn files with nest.
However, if I
export NEST_MLMODULES=nestmlmodule it breaks nest (sli).
That is, I invoke nest, and it says it can't find nestmlmodule.
However, if I start a new shell, and do not export NEST_MLMODULES I can run python, import nest, then
nest.Install("./nestmlmodule") # in the right directory
neuron = nest.Create("iaf_cond_beta_neuron")
If I then export NEST_MLMODULES=nestmlmodule I can't import nest from python.
Somewhere in the middle of all this, I reran nestml to create just the iaf_cond_beta_neuron, so that's the library I'm using. I'm pretty sure that library works fine.
Any idea how to fix it?
-Chris
From: Chris Huyck <C.Huyck@mdx.ac.ukmailto:C.Huyck@mdx.ac.uk> Sent: 31 January 2025 12:10 To: NEST User Mailing List <users@nest-simulator.orgmailto:users@nest-simulator.org> Subject: [NEST Users] Re: nestml synapses in pyNN
I'm trying to use my own short term potentiation model with an existing model. The model is the IF_cond_exp model from PyNN. I tried your nestml integrate and fire models from
Git.../nestml/master/models/neurons, and none seem to be the IF_cond_exp model. The closest I could find was the iaf_cond_beta_neuron. Am I missing something. Is the IF_cond_exp model done somewhere in nestml? (I'm relatively vested in that IF_cond_exp model. I need the nestml neuron model before I can properly use the nestml synapse model.)
-Chris
From: Charl Linssen <nest-users@turingbirds.commailto:nest-users@turingbirds.com> Sent: 23 July 2024 11:25 To: users@nest-simulator.orgmailto:users@nest-simulator.org Subject: [NEST Users] Re: nestml synapses in pyNN
You don't often get email from nest-users@turingbirds.commailto:nest-users@turingbirds.com. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification
Hi Chris,
Thank you for writing in! It would be great to have a better compatibility and better documentation for using NESTML models in pyNN, but as of now this is not yet in place, please let us know if you have any tips or experience to share.
On SpiNNaker, only neuron models are supported for now, we have an open position for a student project to implement synaptic plasticity as well!
With kind regards,
Charl
On Mon, Jul 22, 2024, at 16:32, Chris Huyck wrote:
I've taken your noisy_synapse model and got that to run in pyNest. When I try it in PyNN it fails (can't find weight if you set w, weight not an argument if you use weight). I understand that you don't support pyNN. Do you support SpiNNaker (as it's a target)? If so, how do you access the model on SpiNNaker? (I only access SpiNNaker through PyNN).
-Chris
_______________________________________________
NEST Users mailing list -- users@nest-simulator.orgmailto:users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.orgmailto:users-leave@nest-simulator.org
_______________________________________________ NEST Users mailing list -- users@nest-simulator.orgmailto:users@nest-simulator.org To unsubscribe send an email to users-leave@nest-simulator.orgmailto:users-leave@nest-simulator.org