sfepy/sfepy — Issue #14: add a fix to work both with scipy0.6.0 and svn
Author: rc
Created: 2012-01-30 10:23:54+00:00
State: open

If one wants to work with scipy0.6.0, we I need to apply this patch:

$ hg di
diff -r e4024ff7ab0b sfe/solvers/ls.py
--- a/sfe/solvers/ls.py	Tue Feb 05 13:44:32 2008 +0100
+++ b/sfe/solvers/ls.py	Tue Feb 05 14:23:47 2008 +0100
@@ -1,7 +1,7 @@ from sfe.base.base import *
from sfe.base.base import *
from sfe.solvers.solvers import LinearSolver

-import scipy.splinalg.dsolve.umfpack as um
+import scipy.linsolve.umfpack as um
um.configure( assumeSortedIndices = True )

##

Let's add something like this into the ls.py:

if scipy.version.version == "0.6.0":
import scipy.linsolve.umfpack as um
else:
import scipy.splinalg.dsolve.umfpack as um

This is a high priority, because sfepy should work as much as possible with
the released version of scipy imho.

Migrated from http://code.google.com/p/sfepy/issues/detail?id=10

earlier comments

ondrej.certik said, at 2008-02-05T13:35:54.000Z:

Patch fixing this issue is attached.

ondrej.certik said, at 2008-02-05T13:38:55.000Z:

Import for example using:

$ hg import ~/Desktop/Downloads/scipy.patch
applying /home/ondra/Desktop/Downloads/scipy.patch

robert.cimrman said, at 2008-02-05T13:53:18.000Z:

applied.