Skip to content

Commit

Permalink
Use the suggested python version switch (as recommended in https://nu…
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jun 19, 2024
1 parent 19b18ca commit 8d269d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elli/importer/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d269d9

Please sign in to comment.