Skip to content
Snippets Groups Projects
Commit 566ed10f authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

make umfpack work in scipy 0.14.0

parent 707bfa20
Branches
Tags
No related merge requests found
......@@ -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.
try:
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment