Open pnbabu opened 6 months ago
Based on discussion at the 2024 Q1 NEST hackathon, we concluded that implementing this in NEST Simulator would be difficult. In this case, we should forbid users from using RNGs in the parameters (or internals, or state) initialisation when generating code for the NEST target. (This should be a target platform-specific coco.)
When the
random_normal()
function is called from theparameters
orstate
block of the NESTML model, the simulation script with the model throws an error:In the generated code, the parameter with the
random_normal()
function is initialized in the constructorAt this point in the code, the thread ID via the
get_thread()
function is not yet available with the node which results in the error.