From 4d428826a1cb9d18fcfc87956707088aa7f2484a Mon Sep 17 00:00:00 2001 From: Hongyu Chen Date: Sun, 4 Aug 2024 12:16:54 -0700 Subject: [PATCH] remove invalid testcase --- test/test_grid.py | 6 ------ uxarray/grid/geometry.py | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/test/test_grid.py b/test/test_grid.py index 10faba696..cac8eeb3b 100644 --- a/test/test_grid.py +++ b/test/test_grid.py @@ -951,9 +951,3 @@ def test_populate_bounds_GCA_mix(self): bounds_xarray = grid.bounds face_bounds = bounds_xarray.values nt.assert_allclose(grid.bounds.values, expected_bounds, atol=ERROR_TOLERANCE) - - def test_populate_bounds_MPAS(self): - xrds = xr.open_dataset(self.gridfile_mpas) - uxgrid = ux.Grid.from_dataset(xrds, use_dual=True) - bounds_xarray = uxgrid.bounds - pass diff --git a/uxarray/grid/geometry.py b/uxarray/grid/geometry.py index 885918bc1..c2ca1c7e4 100644 --- a/uxarray/grid/geometry.py +++ b/uxarray/grid/geometry.py @@ -1056,6 +1056,9 @@ def _populate_bounds( is_GCA_list=is_GCA_list, ) + if temp_latlon_array[face_idx][0][0] == temp_latlon_array[face_idx][0][1]: + pass + assert temp_latlon_array[face_idx][0][0] != temp_latlon_array[face_idx][0][1] assert temp_latlon_array[face_idx][1][0] != temp_latlon_array[face_idx][1][1] lat_array = temp_latlon_array[face_idx][0]