geometor.divine.golden.chains

Golden Chain Analyzer: Harmonic Range Identification in Golden Sections.

This module analyzes and explores chains of connected golden sections, unraveling proportional progressions within exact symbolic geometric models.

Features:

  • find_chains_in_sections: Identifies maximal chains within a collection of golden sections, returning a hierarchical tree of connected sections.

  • unpack_chains: Unpacks the chain tree into individual Chain objects ready for symbolic inspection.

Functions

find_chains_in_sections(sections) → dict[geometor.model.sections.Section, dict]

Identify maximal chains of connected golden sections.

unpack_chains(tree) → list[geometor.model.chains.Chain]

Unpack a chain tree into a list of individual Chain objects.

Module Contents

geometor.divine.golden.chains.find_chains_in_sections(sections: list[geometor.model.sections.Section]) → dict[geometor.model.sections.Section, dict]

Identify maximal chains of connected golden sections.

Two ordered sections (A, B, C) and (B, C, D) connect when the trailing segment (B, C) of the first equals the leading segment (B, C) of the second.

Parameters:

sections – A list of Section objects to analyze.

Returns:

Tree structure mapping root Section nodes to nested dictionaries of connected successor Section nodes.

Return type:

dict

geometor.divine.golden.chains.unpack_chains(tree: dict[geometor.model.sections.Section, dict]) → list[geometor.model.chains.Chain]

Unpack a chain tree into a list of individual Chain objects.

Parameters:

tree – Tree structure returned by find_chains_in_sections().

Returns:

Connected golden-section chains.

Return type:

list[Chain]