Skip to content

Commit

Permalink
Circular import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup committed Sep 8, 2023
1 parent c5cff5e commit 67eab46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anndata/_core/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from ..compat import CupyArray, CupySparseMatrix
from .aligned_mapping import AxisArrays
from .anndata import AnnData
from .index import _normalize_index, _subset, get_vector, unpack_index
from .sparse_dataset import BaseCompressedSparseDataset, sparse_dataset

Expand All @@ -18,6 +17,8 @@

from scipy import sparse

from .anndata import AnnData


# TODO: Implement views for Raw
class Raw:
Expand Down Expand Up @@ -154,6 +155,8 @@ def copy(self):

def to_adata(self):
"""Create full AnnData object."""
from anndata import AnnData

return AnnData(
X=self.X.copy(),
var=self.var.copy(),
Expand Down

0 comments on commit 67eab46

Please sign in to comment.