diff --git a/himalaya/validation.py b/himalaya/validation.py index 78e3d08..969f008 100644 --- a/himalaya/validation.py +++ b/himalaya/validation.py @@ -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