fix: Report Peak of Interest data as calculated data in Stunner parser#1215
Merged
Conversation
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>
stephenworlow
approved these changes
Jun 1, 2026
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
alt_columnsfor newpkoinaming convention to existingCALCULATED_DATA_LOOKUPPeak of Interest entriesContext
Follow-up to #1213. The
CALCULATED_DATA_LOOKUPalready 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_datawas consuming the PkOI columns to prevent leaking, effectively discarding the data entirely.Test plan
🤖 Generated with Claude Code