More results:
Win32
cmd window: ipython --> fails with ZGELSS error
python myfile.py --> fails with ZGELSS error
Spyder: External console --> fails with ZGELSS error, but Spyder is
functional
Internal/interactive --> fails with Spyder Window abruptly
closing!
Ubuntu 10.04 (upgraded from 9.10)
from xterm: ipython --> pass. python myfile.py --> pass
from Spyder: external console --> pass! but slow update on console
window. After figure delete, takes a long time for Spyder to respond,
on the order of minutes.
internal/interactive console --> pass, but after deleting
figure, the console takes minutes to "pay attention to the window"
internal console --> hangs for long times
At least for WinXP32, the fault appears to be (I think) within lstsq.
I believe I have tracked it down to there. The lstsq is inside of a
try block, but no exceptions seem to be caught.
S1,S2 = getS1S2( S, m, L )
print 'I got here...'
try:
phi = lstsq( S1, S2 )
except ValueError:
lstsqfailcount += 1
print 'lstsq failed to converge'
return array([-1000000000])
except LinAlgError:
lstsqfailcount += 1
print 'Linear Algebra Error'
return array([-1000000000])
except:
print 'Unexpected error:',sys.exc_info()[]
else:
""" continue processing ... """
print 'Finished the lstsq function'
For Ubuntu, I'm somewhat ready to believe that lstsq is also to
blame. I see it struggling to get a solution when the SNR is low. I
guess that is proper, but I am wondering if the function should have a
timeout, or some other escape hatch.
scipy.linalg.lstsq version 0.7.1 has a bug. I posted it to scipy-
users today. It faults rather ungracefully in my CME under Win32 XP
using the Python(x,y) tools. However, even if I use numpy.linalg.lstsq
instead, Spyder is taking a lot of resources and "dying". I'm testing
two versions of my original code running under SciTE on Windows. The
first version passed using numpy.linalg.lstsq. I was somewhat
surprised to see that SciTE running my python code was taking 15% of
one core, vs. Spyder taking 80%+ of a core. I guess that is the price
one pays for the nice GUI. Or am I doing something wrong?
I am running the second version (much more stressful case) under SciTE
as I am typing.