Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JangidBhavnesh authored Oct 9, 2023
1 parent f290309 commit 83eb090
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@


def version_tuple(version):
return tuple(map(int, version.split('.')))
return tuple(map(int, version.split('.')))[:2]


''' This bit copied from PySCF '''
def load_library(libname):
# numpy 1.6 has bug in ctypeslib.load_library, see numpy/distutils/misc_util.py
if version_tuple(numpy.__version__) <= version_tuple('1.6.2'):
#if '1.6' in numpy.__version__:
if version_tuple(numpy.__version__) == version_tuple('1.6.2'):
if (sys.platform.startswith('linux') or
sys.platform.startswith('gnukfreebsd')):
so_ext = '.so'
Expand Down

0 comments on commit 83eb090

Please sign in to comment.