Skip to content

Commit

Permalink
remove invalid testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyuchen1030 committed Aug 4, 2024
1 parent 67ec68c commit 4d42882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions uxarray/grid/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4d42882

Please sign in to comment.