[MSNoise] Problem using s07plot_dtt.py

Oscar Alberto Castro Artola oscar.cas.art at gmail.com
Thu Oct 30 18:34:00 UTC 2014


Hello,

I was working with MSNoise without problems until I decided to change the
*mwcs_wlen* and *mwcs_step*. I ran *s05compute_mwcs.py* and
*s06compute_dtt.py* with the new parameters and then I ran
*s07plot_dtt.py* giving
me the next error message:

*oscar at terminus:~/Doctorado/TI_2/sweet_noise$ py s07plot_dtt.py *
*/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/setuptools-3.6-py2.7.egg/pkg_resources.py:1045:
UserWarning: /home/oscar/.python-eggs is writable by group/others and
vulnerable to attack when used with get_resource_filename. Consider a more
secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE
environment variable).*
*Traceback (most recent call last):*
*  File "s07plot_dtt.py", line 96, in <module>*
*    data = detrend(py1_wmean)*
*  File
"/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/statsmodels/tsa/tsatools.py",
line 230, in detrend*
*    beta = np.linalg.lstsq(trends, x)[0]*
*  File
"/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.py",
line 1837, in lstsq*
*    nlvl = max( 0, int( math.log( float(min(m, n))/2. ) ) + 1 )*
*ValueError: math domain error*
*oscar at terminus:~/Doctorado/TI_2/sweet_noise$ vi s06compute_dtt.py *
*oscar at terminus:~/Doctorado/TI_2/sweet_noise$ py s07plot_dtt.py *
*/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/setuptools-3.6-py2.7.egg/pkg_resources.py:1045:
UserWarning: /home/oscar/.python-eggs is writable by group/others and
vulnerable to attack when used with get_resource_filename. Consider a more
secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE
environment variable).*
*Traceback (most recent call last):*
*  File "s07plot_dtt.py", line 96, in <module>*
*    data = detrend(py1_wmean)*
*  File
"/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/statsmodels/tsa/tsatools.py",
line 230, in detrend*
*    beta = np.linalg.lstsq(trends, x)[0]*
*  File
"/home/oscar/bin/python/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.py",
line 1837, in lstsq*
*    nlvl = max( 0, int( math.log( float(min(m, n))/2. ) ) + 1 )*
*ValueError: math domain error*

Does anyone can help me? Thank you very much in advance!

Oscar


More information about the MSNoise mailing list