Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed May 30, 2024
1 parent 7402964 commit b808b49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/iris/tests/unit/cube/test_Cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ def test_1d_slice_nonexistent_dimension_given(self):
_ = self.cube.slices_over(self.cube.ndim + 1)

def test_2d_slice_coord_given(self):
# Slicing over these two dimensions returns 420 2D cubes, so only check
# Slicing over these two dimensions returns 42 2D cubes, so only check
# cubes up to `self.long_iterator_max` to keep test runtime sensible.
res = self.cube.slices_over(
[self.cube.coord("time"), self.cube.coord("model_level_number")]
Expand All @@ -1109,7 +1109,7 @@ def test_2d_slice_nonexistent_coord_given(self):
)

def test_2d_slice_coord_name_given(self):
# Slicing over these two dimensions returns 420 2D cubes, so only check
# Slicing over these two dimensions returns 42 2D cubes, so only check
# cubes up to `self.long_iterator_max` to keep test runtime sensible.
res = self.cube.slices_over(["time", "model_level_number"])
for ct in range(self.long_iterator_max):
Expand All @@ -1124,7 +1124,7 @@ def test_2d_slice_nonexistent_coord_name_given(self):
_ = self.cube.slices_over(["time", "wibble"])

def test_2d_slice_dimension_given(self):
# Slicing over these two dimensions returns 420 2D cubes, so only check
# Slicing over these two dimensions returns 42 2D cubes, so only check
# cubes up to `self.long_iterator_max` to keep test runtime sensible.
res = self.cube.slices_over([0, 1])
for ct in range(self.long_iterator_max):
Expand All @@ -1150,7 +1150,7 @@ def test_2d_slice_nonexistent_dimension_given(self):
_ = self.cube.slices_over([0, self.cube.ndim + 1])

def test_multidim_slice_coord_given(self):
# Slicing over surface altitude returns 100x100 2D cubes, so only check
# Slicing over surface altitude returns 10x10 2D cubes, so only check
# cubes up to `self.long_iterator_max` to keep test runtime sensible.
res = self.cube.slices_over("surface_altitude")
# Define special ndindex iterator for the different dims sliced over.
Expand Down

0 comments on commit b808b49

Please sign in to comment.