Skip to content

Commit

Permalink
Changelog, docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Aug 23, 2024
1 parent 710d8d0 commit 43d98c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ Fixed
Added
~~~~~

- :meth:`UgridDataArrayAccessor.interpolate_na` has been added to fill missing
- :meth:`xugrid.UgridDataArrayAccessor.interpolate_na` has been added to fill missing
data. Currently, the only supported method is ``"nearest"``.
- :attr:`xugrid.Ugrid1.dims` and :attr:`xugrid.Ugrid2.dims` have been added to
return a tuple of the UGRID dimensions.

Changed
~~~~~~~

- Selection operations such as :meth:`UgridDataArrayAccessor.sel_points` will
now also return points that are located on the edges of 2D topologies.
- :attr:`xugrid.Ugrid1d.dimensions` and :attr:`xugrid.Ugrid2d.dimensions` now
raise a FutureWarning; use ``.dims`` or ``.sizes`` instead.

[0.11.2] 2024-08-16
-------------------
Expand Down
1 change: 1 addition & 0 deletions xugrid/ugrid/ugrid1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def core_dimension(self):

@property
def dims(self):
"""Tuple of UGRID dimension names: node dimension, edge dimension."""
# Tuple to preserve order, unlike set.
return (self.node_dimension, self.edge_dimension)

Expand Down
1 change: 1 addition & 0 deletions xugrid/ugrid/ugrid2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ def core_dimension(self):

@property
def dims(self):
"""Tuple of UGRID dimension names: node dimension, edge dimension, face_dimension."""
# Tuple to preserve order, unlike set.
return (
self.node_dimension,
Expand Down

0 comments on commit 43d98c3

Please sign in to comment.