Skip to content

Commit feb4d60

Browse files
committed
ruff format
1 parent 9e9e348 commit feb4d60

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

lib/iris/coords.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,9 +2125,7 @@ def serialize(x, axis):
21252125
# array we can loop through.
21262126
work_array = np.moveaxis(x, axis, range(-len(axis), 0))
21272127
out_shape = work_array.shape[: -len(axis)]
2128-
work_array = work_array.reshape(
2129-
np.prod(out_shape, dtype=int), -1
2130-
)
2128+
work_array = work_array.reshape(np.prod(out_shape, dtype=int), -1)
21312129

21322130
joined = []
21332131
for arr_slice in work_array:

lib/iris/tests/unit/coords/test_Coord.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,7 @@ def test_string_nd_second(self):
740740

741741
def test_string_nd_bounds_first(self):
742742
self.setupTestArrays((3, 4))
743-
coord = AuxCoord(
744-
self.pts_real.astype(str), bounds=self.bds_real.astype(str)
745-
)
743+
coord = AuxCoord(self.pts_real.astype(str), bounds=self.bds_real.astype(str))
746744

747745
collapsed_coord = coord.collapsed(0)
748746

@@ -766,9 +764,7 @@ def test_string_nd_bounds_first(self):
766764

767765
def test_string_nd_bounds_second(self):
768766
self.setupTestArrays((3, 4))
769-
coord = AuxCoord(
770-
self.pts_real.astype(str), bounds=self.bds_real.astype(str)
771-
)
767+
coord = AuxCoord(self.pts_real.astype(str), bounds=self.bds_real.astype(str))
772768

773769
collapsed_coord = coord.collapsed(1)
774770

0 commit comments

Comments
 (0)