Commit 566ed10f authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

make umfpack work in scipy 0.14.0

parent 707bfa20
......@@ -15,10 +15,17 @@ from . import common
# Note: previous code would have failed if UMFPACK was provided by scikit
import scipy.sparse.linalg.dsolve.linsolve as linsolve
umfpack = linsolve.umfpack
uses_umfpack = linsolve.isUmfpack
# check if we are actually using UMFPACK or rather SuperLU
# TODO: remove the try (only using the except clause) once we depend on
# scipy >= 0.14.0.
uses_umfpack = linsolve.isUmfpack
except AttributeError:
uses_umfpack = linsolve.useUmfpack
if uses_umfpack:
umfpack = linsolve.umfpack
if uses_umfpack:
# This patches a memory leak in SciPy:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment