Skip to content

Commit

Permalink
Try patching .A
Browse files Browse the repository at this point in the history
  • Loading branch information
michalk8 committed Dec 3, 2024
1 parent c2cb40d commit 00ec9e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cellrank/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from importlib import metadata

import scipy.sparse as sp

from cellrank import datasets, estimators, kernels, logging, models, pl
from cellrank._utils._lineage import Lineage
from cellrank.settings import settings
Expand All @@ -14,4 +16,7 @@
except ImportError:
md = None

del metadata, md
# pygam uses `.A`
sp.spmatrix.A = property(lambda self: self.toarray())

del metadata, md, sp

0 comments on commit 00ec9e1

Please sign in to comment.