Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
6e5bb4e9
Commit
6e5bb4e9
authored
May 20, 2021
by
Julia Garriga Ferrer
Browse files
[core][dataset] Add parameters in deepcopy
parent
81355617
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/dataset.py
View file @
6e5bb4e9
...
...
@@ -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
.
filename
s
,
first_filename
=
self
.
first_filename
,
treated
=
self
.
treated
)
dataset
=
type
(
self
)(
self
.
dir
,
data
=
self
.
data
,
dims
=
self
.
__dim
s
,
in_memory
=
self
.
in_memory
,
copy_files
=
True
)
dataset
.
dims
=
copy
.
deepcopy
(
self
.
__dims
,
memo
)
return
dataset
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment