cf-xarray 0.9.3__tar.gz → 0.9.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cf_xarray-0.9.5/.github/release.yml +5 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.github/workflows/ci.yaml +2 -2
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.pre-commit-config.yaml +7 -7
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.readthedocs.yml +3 -2
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/PKG-INFO +2 -3
- cf_xarray-0.9.5/cf_xarray/_version.py +1 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/accessor.py +8 -2
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/geometry.py +371 -217
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/test_accessor.py +3 -1
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/test_geometry.py +8 -2
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray.egg-info/PKG-INFO +2 -3
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray.egg-info/SOURCES.txt +1 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/ci/doc.yml +2 -2
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/api.rst +1 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/geometry.md +2 -3
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/pyproject.toml +1 -2
- cf_xarray-0.9.3/cf_xarray/_version.py +0 -1
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.binder/environment.yml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.deepsource.toml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.github/dependabot.yml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.github/workflows/parse_logs.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.github/workflows/pypi.yaml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.github/workflows/testpypi-release.yaml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.github/workflows/upstream-dev-ci.yaml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.gitignore +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/.tributors +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/CITATION.cff +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/LICENSE +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/README.rst +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/__init__.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/coding.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/criteria.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/datasets.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/formatting.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/helpers.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/options.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/py.typed +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/scripts/make_doc.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/scripts/print_versions.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/sgrid.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/__init__.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/conftest.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/test_coding.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/test_helpers.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/test_options.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/test_scripts.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/tests/test_units.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/units.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray/utils.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray.egg-info/dependency_links.txt +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray.egg-info/requires.txt +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/cf_xarray.egg-info/top_level.txt +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/ci/environment-no-optional-deps.yml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/ci/environment.yml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/ci/upstream-dev-env.yml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/codecov.yml +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/2D_bounds_averaged.png +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/2D_bounds_error.png +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/2D_bounds_nonunique.png +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/Makefile +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/_static/dataset-diagram-logo.tex +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/_static/full-logo.png +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/_static/logo.png +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/_static/logo.svg +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/_static/rich-repr-example.png +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/_static/style.css +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/bounds.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/cartopy_rotated_pole.png +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/coding.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/conf.py +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/contributing.rst +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/coord_axes.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/custom-criteria.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/dsg.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/examples/introduction.ipynb +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/faq.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/flags.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/grid_mappings.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/howtouse.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/index.rst +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/make.bat +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/parametricz.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/plotting.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/provenance.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/quickstart.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/roadmap.rst +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/selecting.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/sgrid_ugrid.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/units.md +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/doc/whats-new.rst +0 -0
- {cf_xarray-0.9.3 → cf_xarray-0.9.5}/setup.cfg +0 -0
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
27
27
|
fail-fast: false
|
|
28
28
|
matrix:
|
|
29
29
|
os: ["ubuntu-latest"]
|
|
30
|
-
python-version: ["3.
|
|
30
|
+
python-version: ["3.10", "3.12"]
|
|
31
31
|
steps:
|
|
32
32
|
- uses: actions/checkout@v4
|
|
33
33
|
with:
|
|
@@ -91,7 +91,7 @@ jobs:
|
|
|
91
91
|
shell: bash -l {0}
|
|
92
92
|
strategy:
|
|
93
93
|
matrix:
|
|
94
|
-
python-version: ["3.
|
|
94
|
+
python-version: ["3.10", "3.12"]
|
|
95
95
|
steps:
|
|
96
96
|
- uses: actions/checkout@v4
|
|
97
97
|
with:
|
|
@@ -3,25 +3,25 @@ ci:
|
|
|
3
3
|
|
|
4
4
|
repos:
|
|
5
5
|
- repo: https://github.com/asottile/pyupgrade
|
|
6
|
-
rev: v3.
|
|
6
|
+
rev: v3.17.0
|
|
7
7
|
hooks:
|
|
8
8
|
- id: pyupgrade
|
|
9
|
-
args: ["--
|
|
9
|
+
args: ["--py310-plus"]
|
|
10
10
|
|
|
11
11
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
12
12
|
# Ruff version.
|
|
13
|
-
rev: 'v0.
|
|
13
|
+
rev: 'v0.6.1'
|
|
14
14
|
hooks:
|
|
15
15
|
- id: ruff
|
|
16
16
|
args: ["--show-fixes", "--fix"]
|
|
17
17
|
|
|
18
18
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
19
|
-
rev: 24.
|
|
19
|
+
rev: 24.8.0
|
|
20
20
|
hooks:
|
|
21
21
|
- id: black
|
|
22
22
|
|
|
23
23
|
- repo: https://github.com/rstcheck/rstcheck
|
|
24
|
-
rev: v6.2.
|
|
24
|
+
rev: v6.2.4
|
|
25
25
|
hooks:
|
|
26
26
|
- id: rstcheck
|
|
27
27
|
additional_dependencies: [sphinx, tomli]
|
|
@@ -36,7 +36,7 @@ repos:
|
|
|
36
36
|
- mdformat-myst
|
|
37
37
|
|
|
38
38
|
- repo: https://github.com/nbQA-dev/nbQA
|
|
39
|
-
rev: 1.8.
|
|
39
|
+
rev: 1.8.7
|
|
40
40
|
hooks:
|
|
41
41
|
- id: nbqa-black
|
|
42
42
|
- id: nbqa-ruff
|
|
@@ -67,7 +67,7 @@ repos:
|
|
|
67
67
|
- id: validate-cff
|
|
68
68
|
|
|
69
69
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
70
|
-
rev: v0.
|
|
70
|
+
rev: v0.19
|
|
71
71
|
hooks:
|
|
72
72
|
- id: validate-pyproject
|
|
73
73
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
version: 2
|
|
2
2
|
|
|
3
3
|
build:
|
|
4
|
-
os: ubuntu-
|
|
4
|
+
os: ubuntu-lts-latest
|
|
5
5
|
tools:
|
|
6
|
-
python: mambaforge-
|
|
6
|
+
python: mambaforge-latest
|
|
7
7
|
jobs:
|
|
8
8
|
post_checkout:
|
|
9
9
|
- (git --no-pager log --pretty="tformat:%s" -1 | grep -vqF "[skip-rtd]") || exit 183
|
|
10
10
|
pre_install:
|
|
11
11
|
- conda list sphinx
|
|
12
12
|
- conda list cf_xarray
|
|
13
|
+
- conda list
|
|
13
14
|
|
|
14
15
|
conda:
|
|
15
16
|
environment: ci/doc.yml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cf_xarray
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: A convenience wrapper for using CF attributes on xarray objects
|
|
5
5
|
License: Apache License
|
|
6
6
|
Version 2.0, January 2004
|
|
@@ -214,11 +214,10 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
214
214
|
Classifier: Natural Language :: English
|
|
215
215
|
Classifier: Operating System :: OS Independent
|
|
216
216
|
Classifier: Programming Language :: Python
|
|
217
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
218
217
|
Classifier: Programming Language :: Python :: 3.10
|
|
219
218
|
Classifier: Programming Language :: Python :: 3.11
|
|
220
219
|
Classifier: Programming Language :: Python :: 3.12
|
|
221
|
-
Requires-Python: >=3.
|
|
220
|
+
Requires-Python: >=3.10
|
|
222
221
|
Description-Content-Type: text/x-rst
|
|
223
222
|
License-File: LICENSE
|
|
224
223
|
Requires-Dist: xarray
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.9.5"
|
|
@@ -5,11 +5,17 @@ import inspect
|
|
|
5
5
|
import itertools
|
|
6
6
|
import re
|
|
7
7
|
from collections import ChainMap, namedtuple
|
|
8
|
-
from collections.abc import
|
|
8
|
+
from collections.abc import (
|
|
9
|
+
Callable,
|
|
10
|
+
Hashable,
|
|
11
|
+
Iterable,
|
|
12
|
+
Mapping,
|
|
13
|
+
MutableMapping,
|
|
14
|
+
Sequence,
|
|
15
|
+
)
|
|
9
16
|
from datetime import datetime
|
|
10
17
|
from typing import (
|
|
11
18
|
Any,
|
|
12
|
-
Callable,
|
|
13
19
|
Literal,
|
|
14
20
|
TypeVar,
|
|
15
21
|
Union,
|