Skip to content

Commit 237edba

Browse files
fix: Map relative area group and number of calibration points in Chromeleon parser
These peak-level fields from the raw Chromeleon JSON were not being mapped to the ASM output. They are now included in the peak custom information document. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a380e9f commit 237edba

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)