diff --git a/src/elli/importer/nexus.py b/src/elli/importer/nexus.py index 1b60ce5e..54f242a3 100644 --- a/src/elli/importer/nexus.py +++ b/src/elli/importer/nexus.py @@ -12,7 +12,7 @@ import numpy as np import pandas as pd -if np.version.version < "2.0.0": +if np.lib.NumpyVersion(np.__version__) >= "2.0.0": from numpy.lib.index_tricks import IndexExpression else: from numpy.lib._index_tricks_impl import IndexExpression