Justus Magin
Justus Magin
I have a wrapper in `xdggs` that returns one `Map` instance per dataset containing one or more layers. If I have multiple datasets, I get multiple `Map` instances that I...
> I think side-by-side might become in scope for handling on the JS side natively That could be neat (especially if we can do the linking of maps client-side and...
there's two different needs here: - visualizing one or more layers returned by `explore`. This we want to directly view / render - returning a collection of layers that can...
there's two things we need to do before that can happen: those matrix types need to implement `__array_ufunc__` and `__array_function__` (or `__array_namespace__`, once we support that), and `xarray` needs to...
The issue is that here: https://github.com/pydata/xarray/blob/d4db16699f30ad1dc3e6861601247abf4ac96567/xarray/core/duck_array_ops.py#L193-L206 we try to convert everything to the same dtype, casting numpy and python scalars to an array. The latter is important, because e.g. `numpy.array_api.where`...
there's two things that happen in `as_shared_dtype` (which may not be good design, and we should probably consider splitting it into `as_shared_dtype` and `as_compatible_arrays` or something): first, we cast everything...
So, after thinking about this for (quite) some time, it appears that one way or another we need to figure out the appropriate base array type of the nested array...
I'd go with something like ```python import nested_duck_arrays.dask import nested_duck_arrays ... if any(nested_duck_arrays.first_layer(x) is array_type_cupy for x in scalars_or_arrays): import cupy as cp ``` and add `nested_duck_arrays.first_layer` (with maybe a...
@kmuehlbauer, would you have time to look into the two remaining failing tests? From what I can tell, this has been emitting a `DeprecationWarning` for quite a while and raises...
thanks for looking into this and fixing it, @kmuehlbauer (and so quickly, too)! Just so I understand the implications of using `view`: we will only ever encounter `numpy` (or `cupy`,...