Skip to content

Commit

Permalink
added toarray function to ArrayView (more explicit than copy)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed May 25, 2018
1 parent 8b1d56b commit 7a3054e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions anndata/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ def keys(self):
def copy(self, order='C'):
# we want a conventional array
return np.array(self)

def toarray(self):
return self.copy()


# the following two definitions are exactly equivalent
Expand Down

0 comments on commit 7a3054e

Please sign in to comment.