Skip to content

Commit fb5293a

Browse files
authored
Merge branch 'main' into interpolate-cross-section
2 parents a7732d0 + b70576f commit fb5293a

5 files changed

Lines changed: 456 additions & 401 deletions

File tree

test/test_mpas.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,20 @@
1818
# Fill value
1919
fv = INT_FILL_VALUE
2020

21-
def test_read_mpas():
22-
"""Tests execution of _read_mpas()"""
21+
22+
23+
def test_read_primal():
2324
mpas_primal_ugrid, _ = _read_mpas(mpas_xr_ds, use_dual=False)
25+
26+
assert "face_edge_connectivity" in mpas_primal_ugrid
27+
assert "face_node_connectivity" in mpas_primal_ugrid
28+
assert "node_edge_connectivity" in mpas_primal_ugrid
29+
assert "edge_face_connectivity" in mpas_primal_ugrid
30+
assert "node_face_connectivity" in mpas_primal_ugrid
31+
assert "edge_node_connectivity" in mpas_primal_ugrid
32+
assert "face_face_connectivity" in mpas_primal_ugrid
33+
34+
def test_read_dual():
2435
mpas_dual_ugrid, _ = _read_mpas(mpas_xr_ds, use_dual=True)
2536

2637
def test_mpas_to_grid():

uxarray/grid/bounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _populate_face_bounds(
9797

9898
bounds_da = xr.DataArray(
9999
bounds_array,
100-
dims=["n_face", "lon_lat", "min_max"],
100+
dims=["n_face", "lat_lon", "min_max"],
101101
attrs={
102102
"cf_role": "face_latlon_bounds",
103103
"_FillValue": INT_FILL_VALUE,

0 commit comments

Comments
 (0)