Commit graph

3 commits

Author SHA1 Message Date
Michael Winter e687087e76 Fix fraction representation in output
Fix to_fraction() in src/pitch.py to handle negative exponents
correctly without floating point precision loss.

Before: 2573485501354569/2251799813685248
After:  8/7
2026-03-17 15:30:05 +01:00
Michael Winter b349ee89bc Extract DIMS to separate dims.py module
- Create src/dims.py with DIMS_4, DIMS_5, DIMS_7, DIMS_8 constants
- Update pitch.py to import from dims
- Update harmonic_space.py to import from dims
- Update io.py to import from dims
- Fix circular import issue
2026-03-16 15:50:02 +01:00
Michael Winter 0698d01d85 Refactor into src/ module with caching and CLI improvements
- Split monolithic compact_sets.py into modular src/ directory
- Add graph caching (pickle + JSON) with --cache-dir option
- Add --output-dir, --rebuild-cache, --no-cache CLI options
- Default seed is now None (random) instead of 42
- Add .gitignore entries for cache/ and output/
2026-03-13 18:38:38 +01:00