Skip to content

Commit

Permalink
coefficient_array: use copy instead of view
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpintarelli committed Aug 10, 2023
1 parent e5865ad commit d3cdbf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def __setitem__(self, key, item):
x[:] = item
else:
if isinstance(item, np.ndarray):
self._data[key] = self.ctype(item, dtype=self.dtype, copy=False)
self._data[key] = self.ctype(item, dtype=self.dtype, copy=True)
else:
self._data[key] = item

Expand Down

0 comments on commit d3cdbf5

Please sign in to comment.