Skip to content

fix: Report Peak of Interest data as calculated data in Stunner parser#1215

Merged
nathan-stender merged 1 commit into
mainfrom
fix/stunner-pkoi-calculated-data
Jun 1, 2026
Merged

fix: Report Peak of Interest data as calculated data in Stunner parser#1215
nathan-stender merged 1 commit into
mainfrom
fix/stunner-pkoi-calculated-data

Conversation

@nathan-stender

Copy link
Copy Markdown
Collaborator

Summary

  • PkOI (Peak of Interest) columns were being silently discarded — consumed by peak extraction to prevent custom info leaking, but never written to output
  • Added alt_columns for new pkoi naming convention to existing CALCULATED_DATA_LOOKUP Peak of Interest entries
  • Added two new calculated data entries: Peak of Interest Mass Mean Diameter and Peak of Interest Rayleigh Ratio R (new fields in newer instrument software)
  • All 72 columns from the customer file are now accounted for in the ASM output

Context

Follow-up to #1213. The CALCULATED_DATA_LOOKUP already had "Peak of Interest" entries but they used old column names (peak of interest mean dia (nm)) that didn't match the new format (pkoi intensity mean dia. (nm)). Meanwhile, _extract_peak_data was consuming the PkOI columns to prevent leaking, effectively discarding the data entirely.

Test plan

  • All 34 Stunner/Lunatic tests pass
  • Lint clean (ruff, black, mypy)
  • Customer file produces 510 Peak of Interest calculated data docs across 6 fields
  • All 72 original columns validated as present in ASM output
  • 60/85 measurements have real PkOI values, 25 correctly report N/A (blanks/no-peaks)
  • No duplicate columns in data system document

🤖 Generated with Claude Code

PkOI columns were being consumed by peak extraction to prevent custom
info leaking, but then discarded — the data never appeared in the output.
The CALCULATED_DATA_LOOKUP already had entries for these fields but they
didn't match the new "pkoi" column naming convention.

- Remove PkOI consumption from _extract_peak_data (it's not a numbered peak)
- Add alt_columns for new pkoi column names to existing Peak of Interest entries
- Add two new entries following the "peak of interest" / "pkoi" pattern:
  Peak of Interest Mass Mean Diameter and Peak of Interest Rayleigh Ratio R
- Add corresponding CalculatedDataConfig entries

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 1, 2026 21:17
@nathan-stender
nathan-stender merged commit dc80b4f into main Jun 1, 2026
9 checks passed
@nathan-stender
nathan-stender deleted the fix/stunner-pkoi-calculated-data branch June 1, 2026 21:20
nathan-stender added a commit that referenced this pull request Jun 1, 2026
### Fixed

- Report Peak of Interest data as calculated data in Stunner parser
(#1215)
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