Commit dc80b4f
fix: Report Peak of Interest data as calculated data in Stunner parser (#1215)
## 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
- [x] All 34 Stunner/Lunatic tests pass
- [x] Lint clean (ruff, black, mypy)
- [x] Customer file produces 510 Peak of Interest calculated data docs
across 6 fields
- [x] All 72 original columns validated as present in ASM output
- [x] 60/85 measurements have real PkOI values, 25 correctly report N/A
(blanks/no-peaks)
- [x] No duplicate columns in data system document
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5f9d227 commit dc80b4f
5 files changed
Lines changed: 701 additions & 75 deletions
File tree
- src/allotropy/parsers/unchained_labs_lunatic_stunner
- tests/parsers/unchained_labs_lunatic_stunner/testdata
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| |||
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
165 | 183 | | |
166 | 184 | | |
167 | 185 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
200 | 214 | | |
201 | 215 | | |
202 | 216 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 118 | | |
125 | 119 | | |
126 | 120 | | |
| |||
0 commit comments