Skip to content

Conversation

@timothy-nunn
Copy link
Contributor

Implements a copy method for various objects that offers a safe way to make copies of the objects. These methods should be much faster than using Python's copy module: only copies of mutable data (e.g. lists and other objects) are made.

I have also updated the relevant tests of these objects to re-run the test using a copy of the object to ensure a copy behaves identically to the original.

@timothy-nunn timothy-nunn marked this pull request as ready for review October 2, 2025 10:10
@kpentland kpentland self-requested a review October 6, 2025 07:14
@kpentland kpentland added the enhancement New feature or request label Oct 6, 2025
Copy link
Collaborator

@kpentland kpentland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks all great, thanks Tim - will save a lot of compute time in big simulations. Merging in.

@kpentland kpentland merged commit b9bfcd5 into FusionComputingLab:main Oct 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants