[pull] main from xarray-contrib:main#69
Open
pull[bot] wants to merge 240 commits into
Open
Conversation
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* check attrs before printing * explicit skip axes and coords * better var names * use one if * apply review and add what's new
On some instance of E-OBS dataset, the "units" is Celsius instead of the standard "celsius".
updates: - [github.com/psf/black: 22.3.0 → 22.6.0](psf/black@22.3.0...22.6.0) - [github.com/pre-commit/mirrors-mypy: v0.942 → v0.961](pre-commit/mirrors-mypy@v0.942...v0.961) - [github.com/myint/rstcheck: 3f92957478422df87bd730abde66f089cc1ee19b → v6.0.0.post1](rstcheck/rstcheck@3f92957...v6.0.0.post1) - [github.com/asottile/pyupgrade: v2.31.1 → v2.34.0](asottile/pyupgrade@v2.31.1...v2.34.0) - [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.3.0](pre-commit/pre-commit-hooks@v4.1.0...v4.3.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
* Test with flox * Actually test * [test-upstream] * [test-upstream] * [test-upstream] * Fix grouped subtraction test a bit
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Relax check_unchanged to adapt to upstream changes * [test-upstream] Co-authored-by: dcherian <deepak@cherian.net>
Bumps [xarray-contrib/ci-trigger](https://github.com/xarray-contrib/ci-trigger) from 1.1 to 1.2. - [Release notes](https://github.com/xarray-contrib/ci-trigger/releases) - [Commits](xarray-contrib/ci-trigger@v1.1...v1.2) --- updated-dependencies: - dependency-name: xarray-contrib/ci-trigger dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [mamba-org/provision-with-micromamba](https://github.com/mamba-org/provision-with-micromamba) from 13 to 14. - [Release notes](https://github.com/mamba-org/provision-with-micromamba/releases) - [Commits](mamba-org/provision-with-micromamba@a319a81...f347426) --- updated-dependencies: - dependency-name: mamba-org/provision-with-micromamba dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 22.6.0 → 22.8.0](psf/black@22.6.0...22.8.0) - [github.com/PyCQA/flake8: 4.0.1 → 5.0.4](PyCQA/flake8@4.0.1...5.0.4) - [github.com/pre-commit/mirrors-mypy: v0.961 → v0.981](pre-commit/mirrors-mypy@v0.961...v0.981) - [github.com/rstcheck/rstcheck: v5.0.0 → v6.1.0](rstcheck/rstcheck@v5.0.0...v6.1.0) - [github.com/executablebooks/mdformat: 0.7.14 → 0.7.16](hukkin/mdformat@0.7.14...0.7.16) - [github.com/nbQA-dev/nbQA: 1.3.1 → 1.5.2](nbQA-dev/nbQA@1.3.1...1.5.2) - [github.com/asottile/pyupgrade: v2.34.0 → v2.38.2](asottile/pyupgrade@v2.34.0...v2.38.2) - [github.com/keewis/blackdoc: v0.3.4 → v0.3.7](keewis/blackdoc@v0.3.4...v0.3.7) * Update .pre-commit-config.yaml Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pascal Bourgault <bourgault.pascal@ouranos.ca> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ed (#622) Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
The per-call ``from regex import match`` (with ``re`` fallback) inside ``_get_custom_criteria`` goes through ``importlib._bootstrap._find_and_load`` on every invocation, even when the module is already in ``sys.modules``. Concurrent threads calling cf accessors then serialize on the import lock, which shows up as large ``acquire`` time in py-spy profiles of multi-threaded users (e.g. async webservers serving many variables). Moving the import to module scope makes subsequent references a fast ``LOAD_GLOBAL`` with no lock acquisition. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.3 to 2.7.0. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](urllib3/urllib3@2.6.3...2.7.0) --- updated-dependencies: - dependency-name: urllib3 dependency-version: 2.7.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The string is typically shared across all variables in a dataset, so parse once per distinct attr. Wrap the cached result in `Frozen` to prevent accidental mutation of the shared value. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Skip the per-key _get_all fan-out when every key is already a plain data-variable name — the slow path would just fall through to the same result. Decoration via get_associated_variable_names is unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
drop_bounds is a no-op unless the caller passed a scalar key, so list-key calls (ds.cf[[name]]) never need it. Inline the lookup so list-key paths skip the full-dataset bounds scan entirely. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )