Skip to content

fix: Make space optional in Cytiva UNICORN UV curve regexes#1229

Merged
nathan-stender merged 1 commit into
mainfrom
fix/cytiva-unicorn-uv-regex
Jun 11, 2026
Merged

fix: Make space optional in Cytiva UNICORN UV curve regexes#1229
nathan-stender merged 1 commit into
mainfrom
fix/cytiva-unicorn-uv-regex

Conversation

@nathan-stender

Copy link
Copy Markdown
Collaborator

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

  • Existing cytiva_unicorn golden tests pass (2/2)
  • Verified BRR-92117 file now produces all 5 expected measurements

🤖 Generated with Claude Code

Some UNICORN exports (e.g. AKTApilot) declare UV curves without a space
between "UV" and the number (UV1_280, UV2_0, UV3_0) while others use a
space (UV 1_280). The regexes now accept both formats, preventing silent
loss of absorbance measurements.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nathan-stender
nathan-stender requested review from a team and slopez-b as code owners June 11, 2026 19:58
@nathan-stender
nathan-stender requested a review from tamargrey June 11, 2026 19:58
@nathan-stender
nathan-stender merged commit a2a1f0d into main Jun 11, 2026
9 checks passed
@nathan-stender
nathan-stender deleted the fix/cytiva-unicorn-uv-regex branch June 11, 2026 20:01
nathan-stender added a commit that referenced this pull request Jun 11, 2026
### Fixed

- Make space optional in Cytiva UNICORN UV curve regexes (#1229)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants