Skip to content

Commit e2d4912

Browse files
committed
Review feedback
1 parent 5f98158 commit e2d4912

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parcels/xgrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(self, grid: xgcm.Grid, mesh="flat"):
101101

102102
@classmethod
103103
def from_dataset(cls, ds: xr.Dataset, mesh="flat", xgcm_kwargs=None):
104-
"""WARNING: unstable API, subject to change in future versions."""
104+
"""WARNING: unstable API, subject to change in future versions.""" # TODO v4: make private or remove warning on v4 release
105105
if xgcm_kwargs is None:
106106
xgcm_kwargs = {}
107107

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def assert_empty_folder(path: Path):
126126

127127

128128
def assert_valid_field_data(data: xr.DataArray, grid: XGrid):
129-
assert len(data.shape) == 4, f"Field data should have 4 dimensions (time, depth, lat, lon), got {len(data.shape)}"
129+
assert len(data.shape) == 4, f"Field data should have 4 dimensions (time, depth, lat, lon), got dims {data.dims}"
130130

131131
for ax_expected, dim in zip(_FIELD_DATA_ORDERING, data.dims, strict=True):
132132
ax_actual = get_axis_from_dim_name(grid.xgcm_grid.axes, dim)

0 commit comments

Comments
 (0)