Skip to content

Commit

Permalink
copy dict upon initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Nov 16, 2017
1 parent 333de93 commit 9a4c39c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anndata/anndata.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ def _from_dict(self, ddata):
In particular, from a dict that has been written using
``AnnData._to_dict_fixed_width_arrays``.
"""
ddata = ddata.copy()
# data matrix
if '_data' in ddata:
data = ddata['_data']
Expand Down

0 comments on commit 9a4c39c

Please sign in to comment.