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

[core][dataset][data] Convert new_shape to tuple

parent 09c0819b
......@@ -1482,7 +1482,7 @@ class Data(numpy.ndarray):
self._lock.release()
_file = h5py.File(save, 'a')
dataset_name = "dataset"
new_shape = self.shape if new_shape is None else new_shape
new_shape = self.shape if new_shape is None else tuple(new_shape)
if "dataset" in _file:
if new_shape != _file["dataset"].shape:
......@@ -1547,7 +1547,7 @@ class Data(numpy.ndarray):
_file = h5py.File(path, 'a')
new_shape = self.shape if new_shape is None else new_shape
new_shape = self.shape if new_shape is None else tuple(new_shape)
if "dataset" not in _file:
_file.create_dataset("dataset", self.shape, dtype=self.dtype)
......
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