This commit is contained in:
2025-01-26 19:24:23 -08:00
parent 32cd60e92b
commit d1dde0dbc6
4155 changed files with 29170 additions and 216373 deletions

View File

@@ -46,8 +46,13 @@ class CoordinateSequence:
else:
raise TypeError("key must be an index or slice")
def __array__(self, dtype=None):
return self._coords
def __array__(self, dtype=None, copy=None):
if copy is False:
raise ValueError("`copy=False` isn't supported. A copy is always created.")
elif copy is True:
return self._coords.copy()
else:
return self._coords
@property
def xy(self):