diff --git a/src/__init__.py b/src/__init__.py index 680e4fd..beee8be 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -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", diff --git a/src/io.py b/src/io.py index e9062cc..4e583f7 100644 --- a/src/io.py +++ b/src/io.py @@ -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" diff --git a/src/path.py b/src/path.py index e3eab54..401abf2 100644 --- a/src/path.py +++ b/src/path.py @@ -11,7 +11,7 @@ from .pitch import Pitch from .chord import Chord if TYPE_CHECKING: - from .graph import Candidate + from .pathfinder import Candidate @dataclass diff --git a/src/graph.py b/src/pathfinder.py similarity index 100% rename from src/graph.py rename to src/pathfinder.py diff --git a/tests/test_compact_sets.py b/tests/test_compact_sets.py index 973810e..aef44c8 100644 --- a/tests/test_compact_sets.py +++ b/tests/test_compact_sets.py @@ -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)