Hi Steve,
On 06/05/2012 02:26 PM, steve wrote:
Hi Folks,
Trying to get familiar with finding eigenvalues etc and noticed the schroedinger.py app does almost exactly what I need, except in the quantum domain. Anyway when I tried it run it I get:
Traceback (most recent call last): File "schroedinger.py", line 215, in<module> main() File "schroedinger.py", line 212, in main app() File "/Users/steve/Downloads/sfepy-2012.2-epd/sfepy/applications/application.py", line 29, in call_basic return self.call(**kwargs) File "/Users/steve/Downloads/sfepy-2012.2-epd/sfepy/physics/schroedinger_app.py", line 86, in call evp = self.solve_eigen_problem() File "/Users/steve/Downloads/sfepy-2012.2-epd/sfepy/physics/schroedinger_app.py", line 122, in solve_eigen_problem eigs, mtx_s_phi = eig(mtx_a, mtx_b, n_eigs) File "/Users/steve/Downloads/sfepy-2012.2-epd/sfepy/solvers/eigen.py", line 43, in _standard_call **kwargs) File "/Users/steve/Downloads/sfepy-2012.2-epd/sfepy/solvers/eigen.py", line 283, in __call__ from pysparse import jdsym, itsolvers, precon ImportError: cannot import name jdsym
I see that stuff has moved around in pysparse. Snooping a bit I found that this seems to work:
aluminum:sfepy-2012.2-epd steve$ diff /Users/steve/Downloads/sfepy-2012.2-epd/sfepy/solvers/eigen.py ../sfepy-2012.2-py2.7/sfepy/solvers/eigen.py 283c283,284 < from pysparse import jdsym, itsolvers, precon
from pysparse.eigen import jdsym from pysparse import itsolvers, precon
Looks like I installed pysparse 1.2-dev224. What version do you guys recommend?
I am using 1.1-1build3, which is in Kubuntu 12.04. I will fix the imports so that both ways work. Thanks for the debugging!
r.