Skip to content

fix: Support HIAC Run Counter format in .xlsx files for Beckman PharmSpec parser#1238

Merged
nathan-stender merged 1 commit into
mainfrom
fix/beckman-pharmspec-hiac-xlsx-format
Jun 30, 2026
Merged

fix: Support HIAC Run Counter format in .xlsx files for Beckman PharmSpec parser#1238
nathan-stender merged 1 commit into
mainfrom
fix/beckman-pharmspec-hiac-xlsx-format

Conversation

@nathan-stender

Copy link
Copy Markdown
Collaborator

Summary

  • HIAC instruments can export the "Run Counter Test" format as .xlsx, not just .xls
  • The _read_xlsx method assumed all .xlsx files use the PharmSpec format (which has an Approver_ footer marker), causing AllotropeConversionError on HIAC Run Counter .xlsx files
  • Added format detection: PharmSpec uses a 3-column header layout (key | : | value), while HIAC Run Counter uses a 2-column layout (key | : value). Routes to the existing _parse_hiac_run_counter_format handler when the file isn't PharmSpec.

Test plan

  • All 17 existing beckman_pharmspec tests pass (including the missing_approver error test)
  • Verified the failing .xlsx HIAC file now parses successfully
  • Verified existing .xls HIAC files still parse correctly
  • Lint clean (ruff, black, mypy)

🤖 Generated with Claude Code

…Spec parser

The xlsx reader assumed all .xlsx files use the PharmSpec format (with
an Approver_ marker), but HIAC instruments can also export the Run
Counter Test format as .xlsx. Detect the format by checking whether
column 1 contains bare ":" cells (PharmSpec 3-column layout) vs
": value" strings (HIAC Run Counter 2-column layout), and route to
the existing _parse_hiac_run_counter_format handler accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nathan-stender
nathan-stender requested review from a team and slopez-b as code owners June 30, 2026 15:55
@nathan-stender
nathan-stender requested a review from tamargrey June 30, 2026 15:55
@nathan-stender
nathan-stender merged commit c0d0e6b into main Jun 30, 2026
9 checks passed
@nathan-stender
nathan-stender deleted the fix/beckman-pharmspec-hiac-xlsx-format branch June 30, 2026 18:39
nathan-stender added a commit that referenced this pull request Jul 1, 2026
### Fixed

- Support HIAC Run Counter format in .xlsx files for Beckman PharmSpec
parser (#1238)
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.

2 participants