-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add Simple method to make deepcopies #469
Labels
feature request
An issue that improves the user interface.
mccafe ☕
Issues that need to be resolved before the MCCAFE MontePy port
Comments
duplicate of #123. |
Closed
MicahGale
added
the
mccafe ☕
Issues that need to be resolved before the MCCAFE MontePy port
label
Aug 3, 2024
This will be useful. Some questions on the mechanics to consider:
|
I think generally:
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature request
An issue that improves the user interface.
mccafe ☕
Issues that need to be resolved before the MCCAFE MontePy port
Is your feature request related to a problem? Please describe.
It's quite common to use an existing object as a "template" for a new one. For instance, when discretizing a cell into smaller ones for zone depletions it would be helpful to make copies of the cell, its surfaces, and material.
Describe the solution you'd like
Add a
clone
method to all objects.So you can do:
instead of:
Describe alternatives you've considered
Currently the recommended method is
copy.deepcopy
Additional context
See
openmc.Cell.clone
The text was updated successfully, but these errors were encountered: