Rename graph.py to pathfinder.py

- Rename graph.py to pathfinder.py for clearer naming
- Update all imports
- Test CLI and tests pass
This commit is contained in:
Michael Winter 2026-03-16 16:13:19 +01:00
parent b349ee89bc
commit 400f970858
5 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ combining ideas from Tom Johnson, James Tenney, and Larry Polansky.
from .pitch import Pitch, DIMS_4, DIMS_5, DIMS_7, DIMS_8
from .chord import Chord
from .harmonic_space import HarmonicSpace
from .graph import PathFinder
from .pathfinder import PathFinder
__all__ = [
"Pitch",

View file

@ -244,7 +244,7 @@ def main():
import argparse
from .dims import DIMS_4, DIMS_5, DIMS_7, DIMS_8
from .harmonic_space import HarmonicSpace
from .graph import PathFinder
from .pathfinder import PathFinder
parser = argparse.ArgumentParser(
description="Generate chord paths in harmonic space"

View file

@ -11,7 +11,7 @@ from .pitch import Pitch
from .chord import Chord
if TYPE_CHECKING:
from .graph import Candidate
from .pathfinder import Candidate
@dataclass

View file

@ -202,7 +202,7 @@ class TestCLI:
def test_target_range_weight(self):
"""Test that target range weight can be enabled and influences path generation."""
from src.harmonic_space import HarmonicSpace
from src.graph import PathFinder
from src.pathfinder import PathFinder
space = HarmonicSpace(DIMS_4)
chords = space.generate_connected_sets(3, 3)