• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pirl-unc / hitlist / 25054171068

28 Apr 2026 12:57PM UTC coverage: 68.324% (+2.9%) from 65.438%
25054171068

push

github

web-flow
v1.29.2: Add --version flag + vectorize sample-match loops (#173) (#174)

Two changes that landed together since both are small:

1. **`hitlist --version`**: top-level CLI now exposes the package
   version. Was reported as missing by a user on v1.29.1.

2. **Vectorize three per-row Python loops** in
   `generate_observations_table()` sample-match resolution (issue #173).
   Replace list comprehensions over the 4.4M-row index with
   `MultiIndex.isin` / `.reindex()` so the membership checks happen in
   pandas C code instead of Python.

Profile, warm cache, on a built observations index (4.4M rows):
- before: 34.8s wall, 6.9M `_isna` calls (3.6s in `isna`)
- after:  24.9s wall, `_isna` no longer in top-20 (~10s saved, 28%)

Output is identical: same row counts, same `sample_match_type`
distribution, same `sample_mhc` fill behavior. The dtype fix ( cast
lookup keys to float to match `obs["_pmid_int"]`'s float64 dtype) is
called out in code comments so future readers don't reintroduce a
silent dtype-mismatch miss.

3175 of 4647 relevant lines covered (68.32%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

51.74
/cli.py


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc