Skip to content

fix: Correct peak height and area unit conversions in Chromeleon parser#1212

Merged
nathan-stender merged 1 commit into
mainfrom
fix/chromeleon-peak-area-height-units
May 27, 2026
Merged

fix: Correct peak height and area unit conversions in Chromeleon parser#1212
nathan-stender merged 1 commit into
mainfrom
fix/chromeleon-peak-area-height-units

Conversation

@nathan-stender

Copy link
Copy Markdown
Collaborator

Summary

  • Peak height: raw Chromeleon values are already in mAU — removed erroneous /1000 division
  • Peak area: raw Chromeleon values are in mAU·min — replaced /1000 with ×60 to convert to mAU·s (the ASM unit)

Both bugs were confirmed by comparing raw vendor JSON against old adapter ASM output across 8 production sequences (1121 peaks). The old adapter passed height through unchanged and the /1000 was producing values 1000x too small.

Test plan

  • All chromeleon parser tests pass
  • Regenerated golden output files reflect correct values
  • Lint passes (ruff, black, mypy)

🤖 Generated with Claude Code

Peak height is already in mAU from Chromeleon — remove erroneous /1000.
Peak area is in mAU·min from Chromeleon — convert to mAU·s by multiplying
by 60 instead of dividing by 1000.

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 May 27, 2026 18:23
@nathan-stender
nathan-stender merged commit 425626c into main May 27, 2026
9 checks passed
@nathan-stender
nathan-stender deleted the fix/chromeleon-peak-area-height-units branch May 27, 2026 22:28
nathan-stender added a commit that referenced this pull request Jun 1, 2026
### Fixed

- Resolve duplicate columns in Stunner DLS output (#1213)
- Correct peak height and area unit conversions in Chromeleon parser
(#1212)
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