Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out what copy/deepcopy should do #46

Open
J08nY opened this issue Oct 13, 2023 · 0 comments
Open

Figure out what copy/deepcopy should do #46

J08nY opened this issue Oct 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@J08nY
Copy link
Owner

J08nY commented Oct 13, 2023

This is a mess and does not work for inplace HDF5 traces.

def __copy__(self):
return Trace(copy(self.samples), copy(self.meta), copy(self.trace_set))
def __deepcopy__(self, memodict):
return Trace(
deepcopy(self.samples, memo=memodict),
deepcopy(self.meta, memo=memodict),
deepcopy(self.trace_set, memo=memodict),
)

@J08nY J08nY added the bug Something isn't working label Oct 13, 2023
@J08nY J08nY self-assigned this Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant