Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Guijarro committed Nov 1, 2024
1 parent 5ccb014 commit 37725d5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ophyd/ophydobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,15 @@ def _repr_info(self):
if self._parent is not None:
yield ("parent", self.parent.name)

def __copy__(self):
"""Copy the ophyd object
# def __copy__(self):
# """Copy the ophyd object
#
# Shallow copying ophyd objects uses the repr information from the
# _repr_info method to create a new object.
# """
# kwargs = dict(self._repr_info())
# return self.__class__(**kwargs)

Shallow copying ophyd objects uses the repr information from the
_repr_info method to create a new object.
"""
kwargs = dict(self._repr_info())
return self.__class__(**kwargs)

def __getnewargs_ex__(self):
"""Used by pickle to serialize an ophyd object
Expand Down

0 comments on commit 37725d5

Please sign in to comment.