Skip to content

Commit f2c1f30

Browse files
committed
Remove redundant checks.
1 parent 1cb44e7 commit f2c1f30

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/iris/_merge.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,14 +1261,8 @@ def merge(self, unique=True):
12611261
some_are_dataless = True
12621262
else:
12631263
# We have (at least one) array content : Record the shape+dtype
1264-
if part_shape is None:
1265-
part_shape = data.shape
1266-
part_dtype = data.dtype
1267-
else:
1268-
# We expect that the "parts" should **all be the same**
1269-
assert data.shape == part_shape
1270-
assert data.dtype == part_dtype
1271-
1264+
part_shape = data.shape
1265+
part_dtype = data.dtype
12721266
# ensure lazy (we make the result real, later, if all were real)
12731267
if is_lazy_data(data):
12741268
all_have_real_data = False

0 commit comments

Comments
 (0)