Skip to content

Commit 6ecc358

Browse files
Update src/utils.py
Co-authored-by: Copilot <[email protected]>
1 parent 7c7f805 commit 6ecc358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def rocketpy_encoder(obj, config: DiscretizeConfig = DiscretizeConfig()):
6262
"""
6363

6464
# Create a shallow copy to avoid mutating the original object
65-
obj_copy = copy.copy(obj)
65+
obj_copy = copy.deepcopy(obj)
6666

6767
for attr_name in dir(obj_copy):
6868
if attr_name.startswith('_'):

0 commit comments

Comments
 (0)