Skip to content

Commit 3d59741

Browse files
committed
Allow multiple conditions for the same axis in cf.Field.indices
1 parent 8b30c00 commit 3d59741

File tree

4 files changed

+266
-139
lines changed

4 files changed

+266
-139
lines changed

Changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Version NEXTVERSION
66
* New methods to allow changing units in a chain: `cf.Field.to_units`,
77
`cf.Data.to_units`
88
(https://github.com/NCAS-CMS/cf-python/issues/874)
9+
* Allow multiple conditions for the same axis in `cf.Field.subspace`
10+
and `cf.Field.indices`
11+
(https://github.com/NCAS-CMS/cf-python/issues/881)
912
* New dependency: ``distributed>=2025.5.1``
1013

1114
----

cf/field.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12754,6 +12754,8 @@ def subspace(self):
1275412754
* Multiple domain axes may be subspaced simultaneously, and it
1275512755
doesn't matter which order they are specified in.
1275612756

12757+
* Multiple criteria may be specified for the same domain axis.
12758+
1275712759
* Subspace criteria may be provided for size 1 domain axes that
1275812760
are not spanned by the field construct's data.
1275912761

0 commit comments

Comments
 (0)