openworm / org.geppetto.recording

Python project allowing to create a recording for Geppetto
http://www.geppetto.org/
Other
5 stars 0 forks source link

Extract unit and meta type from NEURON #22

Open jrieke opened 10 years ago

jrieke commented 10 years ago

@pgleeson @borismarin and anyone else how is familiar with NEURON: Is there any straightforward way to find out what the unit and the meta type of a variable in NEURON are? By meta type, I mean whether it changes during the simulation run or is static. Python solution would be preferred, thx!

borismarin commented 10 years ago

For builtins, you can try units()

For user defined variables, afaik the only way is to inspect the mod file where they are defined. There's an utility to verify mod units called modlunit, maybe you can borrow its parser?