Skip to content

update function load_model_mappings by adding component oceanBgchem#225

Merged
rbeucher merged 1 commit intomainfrom
add_component_oceanBgchem
Mar 18, 2026
Merged

update function load_model_mappings by adding component oceanBgchem#225
rbeucher merged 1 commit intomainfrom
add_component_oceanBgchem

Conversation

@rhaegar325
Copy link
Collaborator

Solved #224.

Added "oceanBgchem" to the component search list in load_model_mappings. Previously, ocean biogeochemistry variables were not discoverable via the component-organised mapping structure, resulting in a KeyError. With this fix, load_model_mappings now iterates over oceanBgchem alongside the existing components (aerosol, atmosphere, land, ocean, sea_ice, time_invariant) when searching for a requested CMIP6 variable.

@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 47.69%. Comparing base (7549b46) to head (64b57f1).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/access_moppy/utilities.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #225      +/-   ##
==========================================
+ Coverage   47.47%   47.69%   +0.21%     
==========================================
  Files          22       22              
  Lines        4183     4183              
==========================================
+ Hits         1986     1995       +9     
+ Misses       2197     2188       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rbeucher rbeucher merged commit e0eb8a3 into main Mar 18, 2026
4 checks passed
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