-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support deepcopy of Simulator objects #51
Comments
After some testing, the deepcopy failure is isolated to the following two data members:
These are both instances of |
This is already a known issue astropy/astropy#5225 and I think I have a workaround for the current version of astropy. |
The desire for this feature came up again while debugging desihub/desisim#298 . If I could deepcopy Checking again, the problem persists but the traceback is now different:
|
The copy.deepcopy function does not work with a Simulator object:
This fails when trying to copy an astropy time object:
This issue is to get this working and add unit tests. The use case for this is
desisim
unit tests which run many different configurations and currently have to call the relatively slow constructor each time. See desihub/desisim#178 for details.The text was updated successfully, but these errors were encountered: