Skip to content

Commit

Permalink
Fix test for get_spatial_subset for new pygeogrids version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Paulik committed Aug 21, 2017
1 parent a5d43d0 commit 3106084
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_io_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,11 @@ def test_gridded_base_spatial_subset():
np.testing.assert_array_equal(new_ds.grid.gpis, gpis[:2])

# ll_bbox subset
# takes cell order into account
ll_bbox = (0, 2, 0, 2)
new_ds = ds.get_spatial_subset(ll_bbox=ll_bbox)
np.testing.assert_array_equal(new_ds.grid.gpis, gpis[:3])
np.testing.assert_array_equal(new_ds.grid.gpis,
np.array([2, 0, 1]))

# grid subset
new_grid = grids.CellGrid(lons[2:], lats[2:],
Expand Down

0 comments on commit 3106084

Please sign in to comment.