We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c7f805 commit 6ecc358Copy full SHA for 6ecc358
src/utils.py
@@ -62,7 +62,7 @@ def rocketpy_encoder(obj, config: DiscretizeConfig = DiscretizeConfig()):
62
"""
63
64
# Create a shallow copy to avoid mutating the original object
65
- obj_copy = copy.copy(obj)
+ obj_copy = copy.deepcopy(obj)
66
67
for attr_name in dir(obj_copy):
68
if attr_name.startswith('_'):
0 commit comments