You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tutorial on building an accesor and site archive - #275
The global accessor's documentation URL points to the UK deterministic archive, so users following the metadata are sent to the wrong dataset documentation. Use the global deterministic archive URL instead.
The README says that ~/.pyearthtoolsconfig can override these defaults, but this module never calls the imported load_root_directories_from_config (unlike site_archive_met_office). As a result, configured roots are ignored whenever this package is imported; load the config after registering the defaults.
variables is documented and registered as accepting either a string or a list, and the registered .sample() path passes a string. Keeping the string here makes filesystem() iterate over its characters, so MOGlobal10km.sample() generates one invalid S3 path per character instead of one variable path. Normalize a string to a one-element list before storing it.
Unlike MOUKV, this accessor does not reject an empty variable list. The committed test report shows test_moglobal_novar as an XPASS, so the xfail is not exercising the documented failure behavior and an empty request can proceed to an empty merge. Add the same early DataNotFoundError guard used by UKV.
variables is documented and registered as accepting either a string or a list, and the registered .sample() path passes a string. Keeping the string here makes filesystem() iterate over its characters, so MOUKV.sample() generates one invalid S3 path per character instead of one variable path. Normalize a string to a one-element list before storing it.
Correct global archive dimensions in slow-load test
The global archive output is not a UKV-sized grid: the site-archive notebook shows global data with dimensions (pressure=37, latitude=1920, longitude=2560), so running this marked-slow test will fail against the implementation's actual dataset shape (1, 37, 1920, 2560). Update the assertion to the global grid dimensions.
Notebook Python version is unsupported by project bounds
docs/notebooks/Gallery.ipynb:219
This notebook metadata now records Python 3.14.6, while the repository and the new AWS package both declare requires-python = ">=3.11, <3.14". The gallery therefore claims an execution environment that cannot install the documented project; keep the metadata on a supported Python version or update the package bounds after validating 3.14 support.
The reason will be displayed to describe this comment to others. Learn more.
This is fine but generally it's better to just not touch files which aren't in the scope of the change. Don't back this one out though because it's so simple, but this is just a general request not to touch (even for quote replacements) which aren't in scope of the PR.
The reason will be displayed to describe this comment to others. Learn more.
If you look at e.g. pyearthtools.data.download.weatherbench.py, the constructor takes license_url and license_ok variables so that there is runtime alerting of the data license conditions unless the user passes an argument. I think that's less relevant for local data sets where the user has already downloaded the data, but for online / streaming access I think we should alert the user to the existence of data licenses and recommend they read the Ts and Cs.
The reason will be displayed to describe this comment to others. Learn more.
See previous comment on license terms alert
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
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.
This PR includes some tutorial notebooks and a site archive for AWS data, which can be run from anywhere.
Changes:
Getting Started
Docstrings
Test Coverage
Documentation
Final Checks:
Alternatively, if generative AI was used, then confirm you have:
Finally,