DLambda#
- class braincell.DLambda(d_lambda, frequency=<factory>, keep_odd=True)[source]#
Splits each branch using the NEURON-style d_lambda discretization.
Computes
lambda_fper segment from branch diameter,Ra,cm, andfrequency. Sums the electrotonic length of the branch, divides byd_lambda, and rounds up to the next integer (optionally promoted to an odd count whenkeep_oddisTrue).This policy requires uniform
(Ra, cm)within each branch. Painting a differentCablePropertyonto a sub-interval of a branch raisesValueError. Resting-potential and temperature variations within a branch are explicitly allowed — only the two cable values that enterlambda_fare checked for uniformity.- resolve_cv_bounds(morpho, *, paint_rules=None)[source]#
Return branch-wise CV bounds from electrotonic length.
- Parameters:
morpho (
Morphology) – Morphology being discretized.paint_rules (
tuple[PaintRule,...] |None) – Paint declarations used to resolve branch-wise cable properties.
- Returns:
Branch-wise normalized intervals sized by the d-lambda rule.
- Return type: