Search found 2 matches

by budd
Thu Mar 13, 2014 8:17 pm
Forum: NEURON + Python
Topic: Accessing segment diameter
Replies: 4
Views: 5496

Re: Accessing segment diameter

Ted, thanks for your detailed reply explaining this python curiosity. From it I have gained a better understanding of the translation process of pt3d data into segment geometry. Using the python statement h.finitialize() after the last pt3dadd statement instead of the hoc call h("for (x) print ...
by budd
Wed Mar 12, 2014 8:51 pm
Forum: NEURON + Python
Topic: Accessing segment diameter
Replies: 4
Views: 5496

Accessing segment diameter

Hi, What is the correct way of accessing segment diameter from python? In a python version of 'cone.hoc' (see 'cone.py' below) seg.diam did not return the same values compared to a hoc call (see output below). cone.py import neuron import math h = neuron.h a = h.Section() a.Ra = 100 a.nseg = 10 a.pu...