Skip to content
Browse files

PyPy 2.0 has numpy.dot now, but not numpy.linalg

  • Loading branch information...
1 parent d0784bb commit 288e01c5a5833700a515423a2954daa4054eb7a3 @peterjc peterjc committed Jul 17, 2013
Showing with 8 additions and 3 deletions.
  1. +2 −1 Tests/test_MMCIF.py
  2. +2 −1 Tests/test_PDB.py
  3. +2 −1 Tests/test_SVDSuperimposer.py
  4. +2 −0 Tests/test_SeqIO_PdbIO.py
View
3 Tests/test_MMCIF.py
@@ -13,8 +13,9 @@
try:
import numpy
- from numpy import dot # Missing on PyPy's micronumpy
+ from numpy import dot # Missing on old PyPy's micronumpy
del dot
+ from numpy.linalg import svd, det # Missing in PyPy 2.0 numpypy
except ImportError:
from Bio import MissingPythonDependencyError
raise MissingPythonDependencyError(
View
3 Tests/test_PDB.py
@@ -17,8 +17,9 @@
try:
import numpy
- from numpy import dot # Missing on PyPy's micronumpy
+ from numpy import dot # Missing on old PyPy's micronumpy
del dot
+ from numpy.linalg import svd, det # Missing in PyPy 2.0 numpypy
except ImportError:
from Bio import MissingPythonDependencyError
raise MissingPythonDependencyError(
View
3 Tests/test_SVDSuperimposer.py
@@ -5,7 +5,8 @@
#TODO - Don't use "from XXX import *"
try:
from numpy import *
- from numpy import dot # missing in PyPy's micronumpy
+ from numpy import dot # missing in old PyPy's micronumpy
+ from numpy.linalg import svd, det # Missing in PyPy 2.0 numpypy
except ImportError:
from Bio import MissingPythonDependencyError
raise MissingPythonDependencyError(
View
2 Tests/test_SeqIO_PdbIO.py
@@ -10,6 +10,8 @@
import numpy
from numpy import dot # Missing on PyPy's micronumpy
del dot
+ # We don't need this (?) but Bio.PDB imports it automatically :(
+ from numpy.linalg import svd, det # Missing in PyPy 2.0 numpypy
except ImportError:
from Bio import MissingPythonDependencyError
raise MissingPythonDependencyError(

0 comments on commit 288e01c

Please sign in to comment.
Something went wrong with that request. Please try again.