Skip to content

feat: Migrate solution_analyzer parsers to REC 2026/03 schema#1182

Open
nathan-stender wants to merge 2 commits into
mainfrom
migrate-solution-analyzer-rec-2026-03
Open

feat: Migrate solution_analyzer parsers to REC 2026/03 schema#1182
nathan-stender wants to merge 2 commits into
mainfrom
migrate-solution-analyzer-rec-2026-03

Conversation

@nathan-stender

Copy link
Copy Markdown
Collaborator

Summary

Migrates all 2 solution_analyzer parsers from REC 2024/09 to REC 2026/03:

  • beckman_pharmspec
  • roche_cedex_bioht

Changes

New files

  • 2026/03 schema mapper: src/allotropy/allotrope/schema_mappers/adm/solution_analyzer/rec/_2026/_03/solution_analyzer.py
  • Downloaded schemas: schemas/adm/solution-analyzer/REC/2026/03/ + many dependency schemas (absorbance, bga, cell-counting, light-obscuration, metabolite-analyzer, osmolality, ph, core, qudt)
  • Generated models: models/adm/solution_analyzer/rec/_2026/_03/ + dependency models

Import path updates (4 parser source files + 1 test file)

All parser *_parser.py and *_structure.py files, plus beckman_pharmspec_parser_test.py, updated from rec._2024._09 to rec._2026._03.

Mapper changes from 2024/09

  • Field rename: average_live_cell_diameter__cell_counter_average_viable_cell_diameter__cell_counter_
  • Manifest URL: REC/2024/09REC/2026/03

Other fixes

  • Fixed incomplete generated bga/blood_gas_detector.py model (code generator produced a broken stub; replaced with valid minimal type alias since it's an unused dependency)

JSON test data audit (12 files)

Change Scope Description
Manifest URL All 12 files REC/2024/09REC/2026/03
ASM converter version All 12 files Various → 0.1.118
Key ordering All 12 files JSON keys reordered to follow 2026/03 schema-defined order

No changes to measurement values, analyte concentrations, cell counts, distribution data, or any other scientific data. This was the simplest migration — no field moves or structural changes in the output.

Test plan

  • hatch run test:test tests/parsers/{both parsers}/ — 35 passed
  • hatch run lint — clean
  • hatch run lint:typing — clean
  • Pre-push hook (770 tests) — all pass

🤖 Generated with Claude Code

Migrate all 2 solution_analyzer parsers from REC 2024/09 to REC 2026/03.
Includes downloading the schema + dependencies, generating model code,
creating the 2026/03 schema mapper, and updating all parser imports.

Parsers migrated:
- beckman_pharmspec
- roche_cedex_bioht

Structural changes in the migration:
- Field renamed: average_live_cell_diameter__cell_counter_ →
  average_viable_cell_diameter__cell_counter_
- Fixed incomplete generated bga/blood_gas_detector model (stub for
  unused dependency)

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 April 16, 2026 23:41
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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