Skip to content

Fix: copy numpy arrays when slicing#284

Merged
psomhorst merged 2 commits intomainfrom
hotfix_copy_arrays_when_slicing
Jul 24, 2024
Merged

Fix: copy numpy arrays when slicing#284
psomhorst merged 2 commits intomainfrom
hotfix_copy_arrays_when_slicing

Conversation

@psomhorst
Copy link
Contributor

When slicing numpy arrays, by default a view is created. It is possible to change values in this view, changing the values in the original array at the same time. This is unexpected behavior.

When slicing numpy arrays, by default a view is created. It is possible
to change values in this view, changing the values in the original
array at the same time. This is unexpected behavior.
@psomhorst psomhorst merged commit 65d756d into main Jul 24, 2024
@psomhorst psomhorst deleted the hotfix_copy_arrays_when_slicing branch July 25, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant