Skip to content

Commit

Permalink
Redundant code
Browse files Browse the repository at this point in the history
Co-authored-by: Sadie L. Bartholomew <[email protected]>
  • Loading branch information
davidhassell and sadielbartholomew authored Nov 11, 2024
1 parent 922af47 commit f7e9a4c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cf/test/test_Field.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,14 +1406,12 @@ def test_Field_indices(self):
g = f[indices]
x = g.dimension_coordinate("X").array
self.assertEqual(g.shape, (1, 10, 7))
x = g.dimension_coordinate("X").array
self.assertTrue((x == [-240, -200, -160, -120, -80, -40, 0]).all())

indices = f.indices(grid_longitude=cf.wo(35, 85))
g = f[indices]
x = g.dimension_coordinate("X").array
self.assertEqual(g.shape, (1, 10, 7))
x = g.dimension_coordinate("X").array
self.assertTrue((x == [-240, -200, -160, -120, -80, -40, 0]).all())

with self.assertRaises(ValueError):
Expand Down

0 comments on commit f7e9a4c

Please sign in to comment.