Closed B-Hartmann closed 2 years ago
Slicing non-scalar features from DCOR is not supported right now, simply because it is so inefficient (image data is read and converted to json by the server, then converted back to an array by dclab). If you wanted to work with non-scalar features, you should download the entire dataset.
I don't see a particular use case where slicing image data justifies not downloading the entire dataset. But I am open to discussing it.
Okay. For me, it works now just using [0:10]
instead of [0:10, :, :]
, so that is fine.
The performance issue is reasonable! I don't have a better solution for this right now, I guess I will close the issue for now.
Ok thanks!
System
Windows 10 Python 3.9 dclab 0.43.1
Minimal working example:
What I expected
So the shape of the data is the same, basically a 3 dimensional array, right? But then using slicing to access the first few images fails when accessing the dataset on DCOR.
I would have expected that this works, no matter if the dataset resource if online or offline.