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)
| 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: |
no outgoing calls
no test coverage detected