Array view instead of copy #328
Labels
bug
Something isn't working
documentation
Something should be addressed in the docs
wontfix
This will not be worked on
Users should be aware that lines like the following:
will create only a "view" onto data in memory. Hence when
data
is modified by any function, e.g.modifies_data
,data_type['data']
will be modified as well. This behavior is in many cases not desired and leads to bugs which are really hard to trace. The correct way looks like:See also https://stackoverflow.com/questions/11524664/how-can-i-tell-if-numpy-creates-a-view-or-a-copy and https://stackoverflow.com/questions/4370745/view-onto-a-numpy-array for some additional information.
The text was updated successfully, but these errors were encountered: