Skip to content

Finish loader separation: remove leftover loaders package (for v0.2.0) - #47

Merged
mpvginde merged 4 commits into
mainfrom
fix/remove-loader-leftovers
Oct 28, 2026
Merged

mpvginde merged 4 commits into
mainfrom
fix/remove-loader-leftovers

Conversation

@mpvginde

@mpvginde mpvginde commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Part of the mxalign v0.2.0 release (the separation release, see RELEASE_PLAN step 2).

PR #27 outsourced loading and validation to mlwp-data-loaders / mlwp-data-specs, but left a broken src/mxalign/loaders/ package on main (it imports modules that no longer exist) and a Runner that still imported .loaders.loader.

  • Remove src/mxalign/loaders/ and drop it from __all__
  • Runner.load_datasets now uses mlwp_data_loaders.load_and_validate_dataset; grid_mapping is applied afterwards via ds.mx.add_grid_mapping
  • loader: in YAML configs is now a dotted module path (e.g. mlwp_data_loaders.loaders.anemoi.anemoi_inference) or a .py file; short names no longer work
  • Update README, examples/config.yaml and CHANGELOG (with migration note)

Not in this PR (still needed before tagging v0.2.0)

  • Replace git pins in [tool.uv.sources] with released versions once mlwp-data-loaders v0.1.0 is out, then re-lock with uv 0.13.5

Test plan

  • pytest (3 passed)
  • mxalign.runner imports
  • End-to-end run of examples/config.yaml (needs earthkit-data and the data)

🤖 Generated with Claude Code

…2.0)

PR #27 moved dataset loading and validation to mlwp-data-loaders but left a
broken src/mxalign/loaders/ package behind. Remove it and finish the
separation for the v0.2.0 release.

- Delete src/mxalign/loaders/ and drop it from __all__
- Runner.load_datasets now calls mlwp_data_loaders.load_and_validate_dataset;
  grid_mapping is applied afterwards via ds.mx.add_grid_mapping
- loader: in YAML configs is now a dotted module path or a .py file
- Update README, example config and changelog (with migration note)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mpvginde mpvginde added this to the v0.2.0 milestone Oct 28, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mpvginde
mpvginde requested a review from leifdenby October 28, 2026 10:27
mpvginde and others added 2 commits October 28, 2026 12:40
…odespell args

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@mpvginde
mpvginde merged commit 5e7660e into main Oct 28, 2026
2 checks passed
@mpvginde
mpvginde deleted the fix/remove-loader-leftovers branch October 28, 2026 12:51
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.

1 participant