Skip to content

Commit

Permalink
chore: Update scipy.sparse import in normalization and transform modules
Browse files Browse the repository at this point in the history
  • Loading branch information
chansigit committed Jul 5, 2024
1 parent 6b8840c commit e31a5f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dynamo/preprocessing/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import numpy.typing as npt
import pandas as pd
from scipy.sparse import csr_matrix
from scipy.sparse.base import issparse
from scipy.sparse import issparse

from ..configuration import DKM
from ..dynamo_logger import (
Expand Down
2 changes: 1 addition & 1 deletion dynamo/preprocessing/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import anndata
import numpy as np
from anndata import AnnData
from scipy.sparse.base import issparse
from scipy.sparse import issparse

from ..configuration import DKM
from ..dynamo_logger import main_debug, main_info_insert_adata_uns
Expand Down
7 changes: 4 additions & 3 deletions tests/test_pl.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ def test_nxviz7_circosplot(adata):

def test_scatters_markers_ezplots():
adata = dyn.sample_data.hematopoiesis()

ax = dyn.pl.cell_cycle_scores(adata, save_show_or_return="return")
assert isinstance(ax, plt.Axes)
import matplotlib.pyplot as plt

ax = dyn.pl.pca(adata, color="cell_type", save_show_or_return="return")
assert isinstance(ax, plt.Axes)

ax = dyn.pl.cell_cycle_scores(adata, save_show_or_return="return")
assert isinstance(ax, plt.Axes)

ax = dyn.pl.umap(adata, color="cell_type", save_show_or_return="return")
assert isinstance(ax, plt.Axes)
Expand Down

0 comments on commit e31a5f4

Please sign in to comment.