Replies: 1 comment 1 reply
-
Hi @LordKthulhu, backup_iv0 = s.iv0.copy() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Thomas,
I'm trying to get a deep copy of the
mtest
state in thepython
module. I create a states
, initialize it, copy it (backup = s.copy()
), and run some calculations on the states
. I'm expecting the backup to hold the values of the initial states, but to the contrary it is as if the copy is shallow. I made a MWE: MWE.zip. I was expectingbackup
to have the same value that I pulled from the states
as it was being copied.Thanks in advance,
Maxime
Beta Was this translation helpful? Give feedback.
All reactions