Skip to content

Commit

Permalink
Revert "edited Coord.copy"
Browse files Browse the repository at this point in the history
This reverts commit 6ed270d.
  • Loading branch information
ESadek-MO committed Dec 16, 2024
1 parent 6ed270d commit d79ad27
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/iris/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _sanitise_array(self, src, ndmin):
else:
extended_shape = tuple([1] * ndims_missing + list(src.shape))
result = src.reshape(extended_shape)
elif src is None:
else:
# Real data : a few more things to do in this case.
# Ensure the array is writeable.
# NB. Returns the *same object* if src is already writeable.
Expand Down Expand Up @@ -1535,10 +1535,6 @@ def copy(self, points=None, bounds=None):
"""
if points is None and bounds is not None:
raise ValueError("If bounds are specified, points must also be specified")
if points is None and iris.FUTURE.dataless_cube:
# dataless coords are not currently implemented, so points should never
# be removed in a copy
points = iris.MAINTAIN_DATA

new_coord = super().copy(values=points)
if points is not None:
Expand Down

0 comments on commit d79ad27

Please sign in to comment.