MCPcopy
hub / github.com/pydata/xarray / values

Method values

xarray/core/dataarray.py:791–803  ·  view source on GitHub ↗

The array's data converted to numpy.ndarray. This will attempt to convert the array naively using np.array(), which will raise an error if the array type does not support coercion like this (e.g. cupy). Note that this array is not copied; operations on it f

(self)

Source from the content-addressed store, hash-verified

789
790 @property
791 def values(self) -> np.ndarray:
792 """
793 The array's data converted to numpy.ndarray.
794
795 This will attempt to convert the array naively using np.array(),
796 which will raise an error if the array type does not support
797 coercion like this (e.g. cupy).
798
799 Note that this array is not copied; operations on it follow
800 numpy's rules of what generates a view vs. a copy, and changes
801 to this array may be reflected in the DataArray as well.
802 """
803 return self.variable.values
804
805 @values.setter
806 def values(self, value: Any) -> None:

Callers 2

chunksizesMethod · 0.45
iselMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected