Skip to content

Commit c2295d1

Browse files
fix: Map relative area group and calibration points in Chromeleon parser (#1210)
## Summary - Maps `relative area group` from peak data into peak custom information document - Maps `number of calibration points` from peak data into peak custom information document ## Context Follow-up to #1207. These two peak-level fields were identified as unmapped gaps between the old Chromeleon adapter output and the new allotropy parser output. The gap report also flagged `bandwidth setting` and `relative retention time` but those are already correctly mapped (bandwidth as `detector bandwidth setting`, relative retention time as a standard peak field). ## Test plan - [x] Verified `relative area group` appears in output (e.g. 6.65 in Glycans peaks) - [x] Verified `number of calibration points` appears in output (0.0 in BioChem/S15 peaks) - [x] All Chromeleon parser tests pass - [x] Regenerated `new_updated/` output files for downstream CSV parser comparison 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a380e9f commit c2295d1

4 files changed

Lines changed: 217 additions & 45 deletions

File tree

src/allotropy/parsers/benchling_chromeleon/benchling_chromeleon_structure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@ def _create_peak(peak: dict[str, Any], signal: dict[str, Any]) -> Peak:
208208
"chromatographic peak resolution (USP)"
209209
),
210210
"asymmetry aia": peak.get("asymmetry aia"),
211+
"relative area group": try_float_or_none(peak.get("relative area group")),
212+
"number of calibration points": try_float_or_none(
213+
peak.get("number of calibration points")
214+
),
211215
},
212216
)
213217

0 commit comments

Comments
 (0)