get_data/store_data should copy arrays by default #654
Labels
bug
Something isn't working
Priority 1
Highest task priority
pytplot
Issues involving the pytplot package
As things stand now, get_data returns a reference, rather than a copy, of the time and data arrays. So any modifications to the returned arrays will affect the stored values in the tplot variable, which is not at all the desired behavior.
There may be cases where the user knows the data won't be modified, and prefers a reference rather than a copy, to avoid the memory and performance penalty of making the copies. We can add a keyword to specify references rather than copies.
The text was updated successfully, but these errors were encountered: