Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
Update `UFuncTypeError` to be compatible with `numpy>=2.0`.
  • Loading branch information
WeilerP committed Jun 18, 2024
1 parent f21651c commit e3b6f4c
Showing 1 changed file with 6 additions and 1 deletion.
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

0 comments on commit e3b6f4c

Please sign in to comment.