Search found 5 matches

by dragoneurotic
Thu Feb 20, 2025 7:33 am
Forum: NEURON + Python
Topic: Python Section syntax error
Replies: 5
Views: 16529

Re: Python Section syntax error

Hi Ted,

the whole code has been deposited in my GitHub, you can run the model if you like locally

https://github.com/antoniosdougalis/Hum ... al_Neurons

Antonios
by dragoneurotic
Wed Feb 19, 2025 6:38 pm
Forum: NEURON + Python
Topic: Python Section syntax error
Replies: 5
Views: 16529

Re: Python Section syntax error

thank you for the reply, this is very insightful and resolves the issue with the syntax error Just for the records for all other users too: old code : spine_neck = h.Section(name= f''{sec}_spine_neck{i}') used to give a syntax error 1. If I use the following format (i.e. remove the {sec} in the of t...
by dragoneurotic
Tue Feb 11, 2025 1:52 pm
Forum: NEURON + Python
Topic: Python Section syntax error
Replies: 5
Views: 16529

Python Section syntax error

Hi All, I am working with NEURON via python and I import a morphology file via an .asc file. All good so far. My neurons has a soma, an axon and dend and apic sections amounting to 150 sections all together. I use python to create some new sections that I call spines and connect them to dend and api...
by dragoneurotic
Mon Feb 03, 2025 7:22 am
Forum: NEURON + Python
Topic: list the mechanisms loaded from the nrnmech.dll.file
Replies: 3
Views: 19230

Re: list the mechanisms loaded from the nrnmech.dll.file

It's not a good idea to do that, unless you enjoy setting booby traps for yourself and anyone who tries to reuse your code. Specification of the mechanisms used by a model should be made by hoc or Python statements. Hi Ted, thank you for your reply. I am not sure what you mean and why this is not a...
by dragoneurotic
Thu Jan 30, 2025 6:05 pm
Forum: NEURON + Python
Topic: list the mechanisms loaded from the nrnmech.dll.file
Replies: 3
Views: 19230

list the mechanisms loaded from the nrnmech.dll.file

Hi, I am working in python and I experience a number of issues. I would like to know how do I list the mechanisms that have been loaded in Neuron from the nrnmech.dll file...I would like to use these to load particular mechanisms in a multicompartment neuron. I know how to do the later but it seems ...