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:
parent
b349ee89bc
commit
400f970858
|
|
@ -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 .pitch import Pitch, DIMS_4, DIMS_5, DIMS_7, DIMS_8
|
||||||
from .chord import Chord
|
from .chord import Chord
|
||||||
from .harmonic_space import HarmonicSpace
|
from .harmonic_space import HarmonicSpace
|
||||||
from .graph import PathFinder
|
from .pathfinder import PathFinder
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Pitch",
|
"Pitch",
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ def main():
|
||||||
import argparse
|
import argparse
|
||||||
from .dims import DIMS_4, DIMS_5, DIMS_7, DIMS_8
|
from .dims import DIMS_4, DIMS_5, DIMS_7, DIMS_8
|
||||||
from .harmonic_space import HarmonicSpace
|
from .harmonic_space import HarmonicSpace
|
||||||
from .graph import PathFinder
|
from .pathfinder import PathFinder
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="Generate chord paths in harmonic space"
|
description="Generate chord paths in harmonic space"
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ from .pitch import Pitch
|
||||||
from .chord import Chord
|
from .chord import Chord
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from .graph import Candidate
|
from .pathfinder import Candidate
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ class TestCLI:
|
||||||
def test_target_range_weight(self):
|
def test_target_range_weight(self):
|
||||||
"""Test that target range weight can be enabled and influences path generation."""
|
"""Test that target range weight can be enabled and influences path generation."""
|
||||||
from src.harmonic_space import HarmonicSpace
|
from src.harmonic_space import HarmonicSpace
|
||||||
from src.graph import PathFinder
|
from src.pathfinder import PathFinder
|
||||||
|
|
||||||
space = HarmonicSpace(DIMS_4)
|
space = HarmonicSpace(DIMS_4)
|
||||||
chords = space.generate_connected_sets(3, 3)
|
chords = space.generate_connected_sets(3, 3)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue