Skip to content

Commit 0079245

Browse files
committed
ruff format
1 parent f93238e commit 0079245

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
@@ -2124,9 +2124,7 @@ def serialize(x, axis):
21242124
# array we can loop through.
21252125
work_array = np.moveaxis(x, axis, range(-len(axis), 0))
21262126
out_shape = work_array.shape[: -len(axis)]
2127-
work_array = work_array.reshape(
2128-
np.prod(out_shape, dtype=int), -1
2129-
)
2127+
work_array = work_array.reshape(np.prod(out_shape, dtype=int), -1)
21302128

21312129
joined = []
21322130
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
@@ -581,9 +581,7 @@ def test_string_nd_second(self):
581581

582582
def test_string_nd_bounds_first(self):
583583
self.setupTestArrays((3, 4))
584-
coord = AuxCoord(
585-
self.pts_real.astype(str), bounds=self.bds_real.astype(str)
586-
)
584+
coord = AuxCoord(self.pts_real.astype(str), bounds=self.bds_real.astype(str))
587585

588586
collapsed_coord = coord.collapsed(0)
589587

@@ -607,9 +605,7 @@ def test_string_nd_bounds_first(self):
607605

608606
def test_string_nd_bounds_second(self):
609607
self.setupTestArrays((3, 4))
610-
coord = AuxCoord(
611-
self.pts_real.astype(str), bounds=self.bds_real.astype(str)
612-
)
608+
coord = AuxCoord(self.pts_real.astype(str), bounds=self.bds_real.astype(str))
613609

614610
collapsed_coord = coord.collapsed(1)
615611

0 commit comments

Comments
 (0)