Cylinder class

(Shortest import: from brian2 import Cylinder)

class brian2.spatialneuron.morphology.Cylinder(*args, **kwds)[source]

Bases: brian2.spatialneuron.morphology.Morphology

A cylinder.

Parameters:

length : Quantity, optional

The total length in meter. If unspecified, inferred from x, y, z.

diameter : Quantity

The diameter in meter.

n : int, optional

Number of compartments (default 1).

type : str, optional

Type of segment, soma, ‘axon’ or ‘dendrite’.

x : Quantity, optional

x position of end point in meter units. If not specified, inferred from length with a random direction.

y : Quantity, optional

x position of end point in meter units.

z : Quantity, optional

x position of end point in meter units.