thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

add a fix to work both with scipy0.6.0 and svn #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by ondrej.c...@gmail.com on 5 Feb 2008 at 1:26

GoogleCodeExporter commented 9 years ago
Patch fixing this issue is attached.

Original comment by ondrej.c...@gmail.com on 5 Feb 2008 at 1:35

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ondrej.c...@gmail.com on 5 Feb 2008 at 1:36

GoogleCodeExporter commented 9 years ago
Import for example using:

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

Original comment by ondrej.c...@gmail.com on 5 Feb 2008 at 1:38

GoogleCodeExporter commented 9 years ago
applied.

Original comment by robert.c...@gmail.com on 5 Feb 2008 at 1:53

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/14

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:23