Commit b0f8dd1d authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][dataset] Check if indices is tuple instead of slice to avoid bug

parent c9dfb71e
......@@ -26,7 +26,7 @@
__authors__ = ["J. Garriga"]
__license__ = "MIT"
__date__ = "26/04/2021"
__date__ = "26/05/2021"
import copy
import glob
......@@ -1314,7 +1314,7 @@ class Data(numpy.ndarray):
if len(data.shape) < 3:
data = data.view(numpy.ndarray)
else:
if isinstance(indices[0], slice):
if isinstance(indices, tuple):
data.urls = self.urls[indices[0]]
data.metadata = self.metadata[indices[0]]
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment