-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python3.9 dask/array/slicing.py in slice_wrap_lists Don't yet support nd fancy indexing #5225
Comments
Could you fill out the issue template including the show_versions part. Please also add the versions of the environment that did work. Also, without a reproducible example we cannot look into the problem. |
Linux streamDebian 5.10.0-6-amd64 #1 SMP Debian 5.10.28-1 (2021-04-09) x86_64 GNU/Linux
INSTALLED VERSIONScommit: None xarray: 0.17.0 |
Hi @JavierRuano — good to see you again! This seems to be a dask issue, is that correct? I'd be surprised if it's a python 3.7 vs 3.9 difference — are you sure that's the only change — are the dask & xarray versions the same? Also — have a look at GitHub's docs on how to format code & tracebacks — we appreciate people posting issues — but it is easier to read them if they're formatted reasonably. |
It works again, i have tried to save a netcdf file what produces the bug, but nothing. The traceback was from debug mode of django. |
I'm sorry I couldn't be more helpful this time |
The code in the line 411, returns Don't yet support nd fancy indexing from dask.
https://github.com/JavierRuano/ASI_Steady/blob/main/ASI_Datase_RACKt.py#L411
that was working well with python3.7 .
ASI_Datase_RACKt.py in refresh_Graphics
saveFile = self.xarray[indices_maps[str(self.typi)]].where(self.xarray.mask == 1).where( …
▼ Local vars
Variable Value
NETCDF_FILES_FOLDER
'/var/www/stream/stream/data/'
end
'2020-11-02'
indices_maps
{'horton': 'ASI_Horton_2012',
'huang': 'ASI_Huang_2018',
'wang': 'ASI_Wang_2017'}
lat_dos
48.75
lat_uno
48.0
lng_dos
-5.75
lng_uno
-5.0
self
<polls.ASI_Datase_RACKt.ASI object at 0x7f585899e1f0>
start
'2020-11-01'
/usr/local/lib/python3.9/dist-packages/xarray/core/common.py in where
self = self.isel(**indexers) …
▼ Local vars
Variable Value
DataArray
<class 'xarray.core.dataarray.DataArray'>
Dataset
<class 'xarray.core.dataset.Dataset'>
align
<function align at 0x7f5878522af0>
clipcond
<xarray.DataArray (latitude: 68, longitude: 81)>
array([[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
...,
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False]])
Coordinates:
cond
<xarray.DataArray (latitude: 68, longitude: 81)>
array([[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
...,
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False]])
Coordinates:
drop
True
indexers
{'latitude': array([], dtype=int64), 'longitude': array([], dtype=int64)}
nonzeros
<zip object at 0x7f584bfc08c0>
other
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
self
NdArrayLikeIndexingAdapter(array=dask.array<copy, shape=(15310, 68, 81), dtype=float64, chunksize=(15310, 68, 81), chunktype=numpy.ndarray>)
/usr/local/lib/python3.9/dist-packages/dask/array/core.py in getitem
dsk, chunks = slice_array(out, self.name, self.chunks, index2, self.itemsize) …
▼ Local vars
Variable Value
dependencies
{'copy-60d43625606b762db38f4c336bfabf09'}
i
array([], shape=(1, 1, 0), dtype=int64)
index
(array([[[ 0]],
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
index2
(array([[[ 0]],
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
normalize_index
<function normalize_index at 0x7f585a1b7940>
out
'getitem-33275cee9730d05017ed841f8e82e286'
self
dask.array<copy, shape=(15310, 68, 81), dtype=float64, chunksize=(15310, 68, 81), chunktype=numpy.ndarray>
slice_with_bool_dask_array
<function slice_with_bool_dask_array at 0x7f585a1b7b80>
slice_with_int_dask_array
<function slice_with_int_dask_array at 0x7f585a1b7a60>
/usr/local/lib/python3.9/dist-packages/dask/array/slicing.py in slice_array
dsk_out, bd_out = slice_with_newaxes(out_name, in_name, blockdims, index, itemsize) …
▼ Local vars
Variable Value
blockdims
((15310,), (68,), (81,))
in_name
'copy-60d43625606b762db38f4c336bfabf09'
index
(array([[[ 0]],
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
itemsize
8
missing
0
not_none_count
3
out_name
'getitem-33275cee9730d05017ed841f8e82e286'
/usr/local/lib/python3.9/dist-packages/dask/array/slicing.py in slice_with_newaxes
dsk, blockdims2 = slice_wrap_lists(out_name, in_name, blockdims, index2, itemsize) …
▼ Local vars
Variable Value
blockdims
((15310,), (68,), (81,))
in_name
'copy-60d43625606b762db38f4c336bfabf09'
index
(array([[[ 0]],
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
index2
(array([[[ 0]],
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
itemsize
8
out_name
'getitem-33275cee9730d05017ed841f8e82e286'
where_none
[]
where_none_orig
[]
/usr/local/lib/python3.9/dist-packages/dask/array/slicing.py in slice_wrap_lists
raise NotImplementedError("Don't yet support nd fancy indexing") …
▼ Local vars
Variable Value
blockdims
((15310,), (68,), (81,))
in_name
'copy-60d43625606b762db38f4c336bfabf09'
index
(array([[[ 0]],
array([], shape=(1, 0, 1), dtype=int64),
array([], shape=(1, 1, 0), dtype=int64))
itemsize
8
out_name
'getitem-33275cee9730d05017ed841f8e82e286'
where_list
[0, 1, 2]
The text was updated successfully, but these errors were encountered: