Repository navigation
Conversation
I preserve deferred extrapolation while integrating the current main changes. I validated 46 lazy/math tests, 12 spatial tests and a two-process check with one shared model read.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #614
I defer extrapolation for Dask-backed datasets until computation and return Dask-backed data variables from
interp(..., extrapolate=True). I reuse the existing NN/IDW kernel for eager and delayed execution. A temporary Dataset with separate model/target namespaces lets Dask share the model read with interpolation without aligning unrelated coordinates.I added regressions for deferred reads, eager/lazy equivalence, a single shared model read through the complete interpolation path, multiple constituents, real/complex data, scalar targets, metadata, and coordinate/name collisions. I also added my name to
CONTRIBUTORS.mdas requested by the contribution guide.Validation
python -m pytest -o addopts= test/test_dataset_extrap_lazy.py test/test_math.py -q: 35 passed.processesscheduler check matched the eager result withxr.testing.assert_identical.git diff --check: passed.Coordinates can still be evaluated for cropping. The delayed extrapolation task materializes the cropped model and target and builds a global tree; it does not provide memory bounded by chunk size. I have not tested a distributed cluster or benchmarked a real tide model.
CI follow-up (2026-10-26)
I checked the Windows job: its actual runtime is Python 3.13.5 with pytest 8.4.1. All 20 new lazy-extrapolation cases passed. The four failures occurred while downloading the IERS ocean-pole file: two propagated a connection timeout, and two passed that timeout object to
pytest.xfail, which expects a string.I reproduced the same four failures on both the published head (
71ff33a9) and its exact base (60931a4b) using a controlled connection timeout, isolated caches, and pytest 8.4.1. The relevant test, downloader, and workflow files are identical between those revisions. My local run used macOS/Python 3.14.6, so it is not a complete reproduction of the Windows environment. I also reran the 20 lazy regressions and 15 math tests successfully; the main deferred-read regression still fails on the base.The latest CI for the same head is green: attempt 3 of
pytest Buildpassed on Ubuntu, macOS, and Windows. The four-failure analysis above concerns attempt 2.