CVPerBranch#

class braincell.CVPerBranch(cv_per_branch=1)[source]#

Assign the same number of CVs to every branch.

This is the default policy used by Cell. cv_per_branch=1 means one CV per branch; larger values split every branch uniformly in normalized branch coordinates.

resolve_cv_bounds(morpho, *, paint_rules=None)[source]#

Return uniform branch-wise CV tilings.

Parameters:
  • morpho (Morphology) – Morphology being discretized.

  • paint_rules (tuple[PaintRule, ...] | None) – Unused for this policy.

Returns:

Uniform normalized intervals for each branch.

Return type:

tuple[tuple[tuple[float, float], ...], ...]