Skip to content

Commit

Permalink
Fixed CubeInterface.values unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 9, 2016
1 parent 9f5db86 commit 35a29e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ def test_dimension_values_kdim(self):
def test_dimension_values_vdim(self):
cube = HoloCube(self.cube, kdims=['longitude', 'latitude'])
self.assertEqual(cube.dimension_values('unknown', flat=False),
np.array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11]], dtype=np.int32))
np.array([[ 0, 4, 8],
[ 1, 5, 9],
[ 2, 6, 10],
[ 3, 7, 11]], dtype=np.int32))

def test_range_kdim(self):
cube = HoloCube(self.cube, kdims=['longitude', 'latitude'])
Expand Down

0 comments on commit 35a29e0

Please sign in to comment.