Help, NEURON equivalent of this Python Code?

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
JamesKyeh
Posts: 7
Joined: Mon Jan 11, 2016 2:38 pm

Help, NEURON equivalent of this Python Code?

Post 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
ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Help, NEURON equivalent of this Python Code?

Post by ted »

It is already "in the native Neuron environment." It just happens to be NEURON using Python as its interpreter.
JamesKyeh
Posts: 7
Joined: Mon Jan 11, 2016 2:38 pm

Re: Help, NEURON equivalent of this Python Code?

Post 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
Post Reply