File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1919from xarray .core .duck_array_ops import array_equiv , astype
2020from xarray .core .indexing import MemoryCachedArray
2121from xarray .core .options import OPTIONS , _get_boolean_with_default
22- from xarray .core .pycompat import array_type , to_duck_array
22+ from xarray .core .pycompat import array_type , to_duck_array , to_numpy
2323from xarray .core .utils import is_duck_array
2424
2525if TYPE_CHECKING :
@@ -121,7 +121,8 @@ def last_item(array):
121121 return []
122122
123123 indexer = (slice (- 1 , None ),) * array .ndim
124- return np .ravel (to_duck_array (array [indexer ])).tolist ()
124+ # to_numpy since dask doesn't support tolist
125+ return np .ravel (to_numpy (array [indexer ])).tolist ()
125126
126127
127128def calc_max_rows_first (max_rows : int ) -> int :
You can’t perform that action at this time.
0 commit comments