From 327228b3ca99b248ebcf2a75a67ac2a3882ae14d Mon Sep 17 00:00:00 2001 From: Kevin Schwarzwald Date: Mon, 11 Mar 2024 13:03:54 -0400 Subject: [PATCH] flip order of new .to_values() doc header paragraphs --- xarray/core/dataarray.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index a13d4252abe..64f02fa3b44 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -763,13 +763,13 @@ def values(self) -> np.ndarray: """ The array's data converted to numpy.ndarray. - Note that this array is not copied; operations on it follow - numpy's rules of what generates a view vs. a copy, and changes - to this array may be reflected in the DataArray as well. - 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 follow + numpy's rules of what generates a view vs. a copy, and changes + to this array may be reflected in the DataArray as well. """ return self.variable.values