Skip to content

Fix PALLADIUM CHEBI enum: CHEBI:33373 (promethium) → CHEBI:33363 (palladium)#206

Open
realmarcin wants to merge 1 commit into
mainfrom
fix/palladium-chebi-enum
Open

Fix PALLADIUM CHEBI enum: CHEBI:33373 (promethium) → CHEBI:33363 (palladium)#206
realmarcin wants to merge 1 commit into
mainfrom
fix/palladium-chebi-enum

Conversation

@realmarcin

Copy link
Copy Markdown
Contributor

Problem

MetalElementEnum.PALLADIUM in the LinkML schema was grounded to CHEBI:33373, which is actually promethium atom — not palladium. The id sits in a run of sequential CHEBI ids shared with the lanthanides (NEODYMIUM 33372, TERBIUM 33374, GADOLINIUM 33375…), a classic copy-paste / off-by-one grounding error. The correct term is CHEBI:33363 ("palladium"), confirmed via OAK.

Fix

  • src/communitymech/schema/communitymech.yamlPALLADIUM meaning: CHEBI:33373CHEBI:33363
  • src/communitymech/datamodel/communitymech.py — regenerated (just gen-python)
  • src/communitymech/metal_extraction.py — corrected the parallel METAL_CHEBI_MAP key

The curated community YAMLs already cited the correct CHEBI:33363 in their term.{id,label} pairs, so no data records needed editing — the bug was confined to the schema's authoritative enum grounding.

Verification

  • just validate-all — clean (exit 0)
  • just test — 197 passed

🤖 Generated with Claude Code

MetalElementEnum.PALLADIUM was grounded to CHEBI:33373, which is actually
"promethium atom" — one of a run of sequential CHEBI ids shared with the
lanthanides, a copy-paste/off-by-one grounding error. The correct term is
CHEBI:33363 ("palladium"), confirmed via OAK.

- schema/communitymech.yaml: PALLADIUM meaning -> CHEBI:33363
- datamodel/communitymech.py: regenerated (just gen-python)
- metal_extraction.py: fix parallel METAL_CHEBI_MAP key

Community YAMLs already cited CHEBI:33363 in their term.{id,label} pairs, so
no data records needed changing. validate-all clean; 197 tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 7, 2026 21:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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