Skip to content

Commit

Permalink
FIX ComplexWarning for numpy>=1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc committed Jun 21, 2024
1 parent fd22af6 commit 4a47099
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion himalaya/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
import warnings

import numpy as np
from numpy.core.numeric import ComplexWarning
try:
from numpy.core.numeric import ComplexWarning
except ImportError:
from numpy.exceptions import ComplexWarning

try:
from scipy.sparse import issparse
Expand Down

0 comments on commit 4a47099

Please sign in to comment.