fre.cmor: variable list semantics: map modeler variable names to MIP table names#846
fre.cmor: variable list semantics: map modeler variable names to MIP table names#846
fre.cmor: variable list semantics: map modeler variable names to MIP table names#846Conversation
… names - Change varlist semantics: key = modeler's var name (in filename AND file), value = MIP table variable name - Add validation: error when filename variable != file variable - Read variable data from file using local_var (modeler name) instead of target_var - Update CLI run command to propagate non-zero return status as ClickException - Update test case2 to test error case (filename/file variable mismatch) - Update docstrings, help text, and log messages to reflect new semantics Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/35f4cd66-b4ff-4394-aa91-d318347d10f1 Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/35f4cd66-b4ff-4394-aa91-d318347d10f1 Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/35f4cd66-b4ff-4394-aa91-d318347d10f1 Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/35f4cd66-b4ff-4394-aa91-d318347d10f1 Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
|
@copilot tests are running but we've plenty to do- while you wait for results, find content under |
…ble var Update documentation across docs/usage/cmor_cookbook.rst, docs/tools/cmor.rst, and fre/cmor/README.md to reflect the new variable list semantics where: - key = modeler's variable name (in filename AND inside the file) - value = MIP table variable name - filename var must match file var or fre cmor run errors Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/5870f988-b97c-4d7b-8b29-e36e63dfb14c Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
…nsistency Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/5870f988-b97c-4d7b-8b29-e36e63dfb14c Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
Updated all documentation under
|
fre.cmor: variable list semantics: map modeler variable names to MIP table names
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #846 +/- ##
==========================================
+ Coverage 84.12% 84.17% +0.05%
==========================================
Files 71 71
Lines 4944 4949 +5
==========================================
+ Hits 4159 4166 +7
+ Misses 785 783 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…h fixtures - Create CDL file and varlist for mapped variable test (sea_sfc_salinity → sos) - Add conftest.py with shared session-scoped fixtures for ncgen, paths, file setup - Refactor test_cmor_run_subtool.py to use conftest fixtures and tmp_path - Add case3 tests: success, data comparison, and metadata comparison - Fix CLI error propagation in frecmor.py (check cmor_run_subtool return status) Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/80cfd2fa-1f68-407c-b0d7-cde17e9e4b1b Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
…e tests - Add conftest.py for fre/tests/ with shared CLI fixtures - Refactor test_fre_cmor_cli.py to use conftest fixtures and tmp_path - Add case3 mapped-variable tests for both CMIP6 and CMIP7 - All 35 CLI tests pass, all 116 cmor tests pass, all 144 fre/tests pass Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/80cfd2fa-1f68-407c-b0d7-cde17e9e4b1b Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NOAA-GFDL/fre-cli/sessions/80cfd2fa-1f68-407c-b0d7-cde17e9e4b1b Co-authored-by: ilaflott <6273252+ilaflott@users.noreply.github.com>
|
this is about right. i want to adjust |
|
|
sea_sfc_salinity→sos)conftest.pytofre/cmor/tests/with shared fixtures (paths, ncgen setup, temp dirs)test_cmor_run_subtool.pyto use fixtures andtmp_pathtest_cmor_run_subtool.py(success + data/metadata comparison)frecmor.py(check return status, raise ClickException)conftest.pytofre/tests/with shared CLI fixturestest_fre_cmor_cli.pyto use conftest fixtures andtmp_pathtest_fre_cmor_cli.py(CMIP6 + CMIP7)