Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 288e01c5a5833700a515423a2954daa4054eb7a3 1 parent d0784bb
Peter Cock peterjc authored
3  Tests/test_MMCIF.py
@@ -13,8 +13,9 @@
13 13
14 14 try:
15 15 import numpy
16   - from numpy import dot # Missing on PyPy's micronumpy
  16 + from numpy import dot # Missing on old PyPy's micronumpy
17 17 del dot
  18 + from numpy.linalg import svd, det # Missing in PyPy 2.0 numpypy
18 19 except ImportError:
19 20 from Bio import MissingPythonDependencyError
20 21 raise MissingPythonDependencyError(
3  Tests/test_PDB.py
@@ -17,8 +17,9 @@
17 17
18 18 try:
19 19 import numpy
20   - from numpy import dot # Missing on PyPy's micronumpy
  20 + from numpy import dot # Missing on old PyPy's micronumpy
21 21 del dot
  22 + from numpy.linalg import svd, det # Missing in PyPy 2.0 numpypy
22 23 except ImportError:
23 24 from Bio import MissingPythonDependencyError
24 25 raise MissingPythonDependencyError(
3  Tests/test_SVDSuperimposer.py
@@ -5,7 +5,8 @@
5 5 #TODO - Don't use "from XXX import *"
6 6 try:
7 7 from numpy import *
8   - from numpy import dot # missing in PyPy's micronumpy
  8 + from numpy import dot # missing in old PyPy's micronumpy
  9 + from numpy.linalg import svd, det # Missing in PyPy 2.0 numpypy
9 10 except ImportError:
10 11 from Bio import MissingPythonDependencyError
11 12 raise MissingPythonDependencyError(
2  Tests/test_SeqIO_PdbIO.py
@@ -10,6 +10,8 @@
10 10 import numpy
11 11 from numpy import dot # Missing on PyPy's micronumpy
12 12 del dot
  13 + # We don't need this (?) but Bio.PDB imports it automatically :(
  14 + from numpy.linalg import svd, det # Missing in PyPy 2.0 numpypy
13 15 except ImportError:
14 16 from Bio import MissingPythonDependencyError
15 17 raise MissingPythonDependencyError(

0 comments on commit 288e01c

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