Message
Re: Concatenating ACV files (curves)
2016-06-28 by ctb@...
I tried your script but it generated an error:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/linalg/basic.py", line 99, in solve
raise LinAlgError("singular matrix")
numpy.linalg.linalg.LinAlgError: singular matrix
Does it have something to do with the standard python version in macos 10.11.5?
This error was preceded by several other terminal output lines that were no error. But I did not understand very well how to read them.
The script resides on my desktop. I was using two simple grayscale curves 1.acv and 2.acv. Output should be written to 3.acv. The script was called with this line:
python /Users/***/Desktop/catacv.py /Users/***/Desktop/1.acv /Users/***/Desktop/2.acv /Users/***/Desktop/3.acv
The complete script output is:
Traceback (most recent call last):
File "/Users/***/Desktop/catacv.py", line 125, in <module>
delta_filter.read_from_file(sys.argv[2])
File "/Users/***/Desktop/catacv.py", line 42, in read_from_file
self.polynomials = self._find_coefficients()
File "/Users/***/Desktop/catacv.py", line 70, in _find_coefficients
p = interpolate.interp1d(xdata, ydata, kind='cubic')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/interpolate/interpolate.py", line 383, in __init__
self._spline = splmake(x, y, order=order)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/interpolate/interpolate.py", line 868, in splmake
coefs = func(xk, yk, order, conds, B)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/interpolate/interpolate.py", line 565, in _find_smoothest
p = np.dual.solve(Q,tmp)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/linalg/basic.py", line 99, in solve
raise LinAlgError("singular matrix")
numpy.linalg.linalg.LinAlgError: singular matrix
Did I something wrong?
best regards,
Kees
Attachments
- No local attachments were found for this message.