Skip to content

Commit

Permalink
remove astype for the time being
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 committed Oct 24, 2023
1 parent 5358670 commit 8d77be1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions xarray/namedarray/core.py
Original file line number Diff line number Diff line change
@@ -534,18 +534,6 @@ def real(self) -> Self:
"""
return self._replace(data=self.data.real)

def astype(self, dtype: _DType, copy: bool = True) -> Self:
"""
Copy of the array, cast to a specified type.
See Also
--------
numpy.ndarray.astype
"""
from xarray.namedarray._array_api import astype

return astype(self, dtype, copy=copy)

def __dask_tokenize__(self) -> Hashable:
# Use v.data, instead of v._data, in order to cope with the wrappers
# around NetCDF and the like

0 comments on commit 8d77be1

Please sign in to comment.