Page 1 of 1

Help, NEURON equivalent of this Python Code?

Posted: Sat Mar 26, 2016 10:49 pm
by JamesKyeh
Hello,

in this model, https://senselab.med.yale.edu/modeldb/s ... classes.py there's a line of code which (I'm assuming) places a stimulation source a set distance from a section:

Code: Select all

def rotate_optrode(self, angle, distance, sec, axis_defining_plane='z'):
        """ rotate optrode around a given sec,
        to a given angle,
        at a given distance
        in the plane defined by the axon and the given vectro
        """
Is there an equivalent for this in the native Neuron environment?

Thank you,
James K

Re: Help, NEURON equivalent of this Python Code?

Posted: Mon Mar 28, 2016 11:00 am
by ted
It is already "in the native Neuron environment." It just happens to be NEURON using Python as its interpreter.

Re: Help, NEURON equivalent of this Python Code?

Posted: Mon Mar 28, 2016 4:24 pm
by JamesKyeh
Upon rereading the code I see where the mistake in my question was. My apologies as my familiarity with Python is pretty low and was too quick to ask a question before looking at the code a bit more!

James