Skip to content

Conversation

@zmoon
Copy link
Owner

@zmoon zmoon commented Jan 19, 2026

Closes #56

zmoon added 20 commits April 15, 2025 13:27
may be more to do, but cre looks pretty good, at least the few
I checked

striprtf package may be another more robust way
some don't work anymore because of lack of RTF file
and two have an unexpected dir structure
10 or so blocks are currently rejected, because of PGM notes
or bumping up against something, or in one case a missing `X`
Summary so far:

* "GRAVEL WALK (reel) (1), The" is missing the `X` at the beginning
* "HEATHER BREEZE (reel) (a-2), The" is missing an `X` line
  (and no newline between it and the "a-3" version)
* PGM note in s-tunes-1.txt (and 2) mentions 6/8, but the tunes above and below it are reels
  (it appears twice, with the same tunes surrounding it (duplicates?))
* missing newline between
  - 252,253 and 658,666 in c-tunes
  - 222,223 in d-tunes
  - 33,34 in e-tunes
notes:

* in s-tunes 1 and 2,
  - there is a high number of duplicate X's
  - "SNOWY OWL, The" which appears 4x
  - 62134 is used for two tunes: "STRANGER (hornpipe), The" and "SONNY BROGAN'S JIG (a)"
* is the intention to use s-tunes-2 _in place of_ s-tunes-1?
* even after removing duplicate tune blocks, there are a few cases of duplicate X values in most of the files
  - for example, in a-tunes, 2, 3, and 5 are each used for 2 different tunes
seems to be the same except some changes related to fixing special
characters like the copyright symbol
adding no-cover for the unexpected log message cases
@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

❌ Patch coverage is 98.23529% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.07%. Comparing base (53720a8) to head (80a0141).
⚠️ Report is 25 commits behind head on main.

Files with missing lines Patch % Lines
pyabc2/sources/bill_black_tunefolders.py 96.38% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #92      +/-   ##
==========================================
+ Coverage   93.60%   94.07%   +0.46%     
==========================================
  Files          13       15       +2     
  Lines        1517     1687     +170     
==========================================
+ Hits         1420     1587     +167     
- Misses         97      100       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zmoon zmoon marked this pull request as ready for review January 19, 2026 21:02
@zmoon zmoon requested a review from Copilot January 19, 2026 21:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds support for loading ABC tune data from Bill Black's Irish Traditional Tune Library (http://www.capeirish.com/ittl/). The implementation provides two approaches: the newer method using alphabetically-organized text files (bill_black.py) and the deprecated "tunefolders" method (bill_black_tunefolders.py).

Changes:

  • Added pyabc2/sources/bill_black.py module to load tunes from the newer alphabetical text file format
  • Added pyabc2/sources/bill_black_tunefolders.py module for the deprecated tunefolders format
  • Added comprehensive tests for both modules
  • Updated documentation with examples and API reference

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
pyabc2/sources/bill_black.py New module that downloads and parses ABC tunes from Bill Black's alphabetically-organized text files
pyabc2/sources/bill_black_tunefolders.py New module supporting the deprecated tunefolders format with collection-based organization
tests/test_sources.py Added tests for both modules including URL validation, data loading, and error handling
docs/examples/sources.ipynb Added notebook example demonstrating bill_black.load_meta() usage
docs/api.rst Added API documentation section for the bill_black module

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zmoon
Copy link
Owner Author

zmoon commented Jan 19, 2026

One test run case gave 403 errors for BB URLs. So note slight flakiness. Norbeck can be as well, should consider adding retries at some point, e.g. using stamina.

@zmoon zmoon merged commit 915f927 into main Jan 19, 2026
13 of 14 checks passed
@zmoon zmoon deleted the black branch January 19, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Load Bill Black

2 participants