Skip to content

Commit 72f1112

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 72f1112

4 files changed

Lines changed: 219 additions & 45 deletions

File tree

src/allotropy/parsers/benchling_chromeleon/benchling_chromeleon_structure.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ 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(
212+
peak.get("relative area group")
213+
),
214+
"number of calibration points": try_float_or_none(
215+
peak.get("number of calibration points")
216+
),
211217
},
212218
)
213219

0 commit comments

Comments
 (0)