Commit a2a1f0d
fix: Make space optional in Cytiva UNICORN UV curve regexes (#1229)
## Summary
- Makes the space between "UV" and the digit optional in all three
absorbance measurement regexes (`UV 1_`, `UV 2_`, `UV 3_` → `UV ?1_`,
`UV ?2_`, `UV ?3_`)
- Fixes silent loss of UV absorbance measurements for exports that use
the no-space format (e.g. AKTApilot devices)
## Context
Some UNICORN exports declare UV curves as `UV1_280` / `UV2_0` / `UV3_0`
(no space), while others use `UV 1_280` (with space). The previous
regexes required the space, causing `filter_curve_or_none()` to return
`None` and silently skip all absorbance measurements.
Reproduced on an AKTApilot 02 export (batch BRR-92117):
- Before fix: 2 measurements (Cond, pH only)
- After fix: 5 measurements (UV1_280, UV2_0, UV3_0, Cond, pH)
## Test plan
- [x] Existing cytiva_unicorn golden tests pass (2/2)
- [x] Verified BRR-92117 file now produces all 5 expected measurements
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6dd22a0 commit a2a1f0d
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
0 commit comments