Commit 6e5bb4e9 authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][dataset] Add parameters in deepcopy

parent 81355617
......@@ -1263,8 +1263,8 @@ class Dataset():
Create copy of the dataset. The data numpy array is also copied using
deep copy. The rest of the attributes are the same.
"""
dataset = type(self)(self.dir, data=self.data, filenames=self.filenames,
first_filename=self.first_filename, treated=self.treated)
dataset = type(self)(self.dir, data=self.data, dims=self.__dims,
in_memory=self.in_memory, copy_files=True)
dataset.dims = copy.deepcopy(self.__dims, memo)
return dataset
......
Markdown is supported
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