Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update utils.py #1252

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dependencies = [
"loompy>=2.0.12",
"umap-learn>=0.3.10",
"numba>=0.41.0",
"numpy>=1.17",
"numpy>=1.17, <2.0.0",
"pandas>=1.1.1, !=1.4.0",
"scipy>=1.4.1",
"scikit-learn>=0.21.2",
Expand Down
7 changes: 6 additions & 1 deletion scvelo/plotting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import numpy as np
import pandas as pd
from numpy.core._exceptions import UFuncTypeError
from pandas import Index
from scipy import stats
from scipy.sparse import issparse
Expand All @@ -24,6 +23,12 @@
from scvelo.tools.utils import strings_to_categoricals
from . import palettes

try:
from numpy.core._exceptions import UFuncTypeError
except ModuleNotFoundError:
from numpy._core._exceptions import UFuncTypeError


"""helper functions"""


Expand Down
Loading