[MSNoise] MSNoise Digest, Vol 5, Issue 6

Thomas Lecocq thomas.lecocq at oma.be
Fri Mar 21 09:12:28 UTC 2014


Esteban,

Le 21/03/2014 04:09, Esteban Chaves a écrit :
> Hi Thomas,
>
> I switch from sqlite to mysql and now the s02new_jobs.py works well. But I got this really weird error when I run:
OK, good to hear. Well, not good for sqlite, but at least it works for 
you now.
>
> Estebans-MacBook-Pro:MSN ech$ python s05compute_mwcs.py
> /Users/ech/anaconda/lib/python2.7/site-packages/numpy/oldnumeric/__init__.py:11: ModuleDeprecationWarning: The oldnumeric module will be dropped in Numpy 1.9
>    warnings.warn(_msg, ModuleDeprecationWarning)
> 2014-03-20 19:57:52,503 [INFO] *** Starting: Compute MWCS ***
> 2014-03-20 19:57:52,599 [INFO] We will recompute all MWCS based on the new REF for YZ.HRIU:YZ.INDI
> 2014-03-20 19:57:52,615 [INFO] We will recompute all MWCS based on the new REF for YZ.HRIU:YZ.NARJ
> 2014-03-20 19:57:52,631 [INFO] We will recompute all MWCS based on the new REF for YZ.INDI:YZ.NARJ
> 2014-03-20 19:57:52,714 [INFO] There are MWCS jobs for some days to recompute for YZ.HRIU:YZ.INDI
> 2014-03-20 19:57:52,721 [DEBUG] Processing MWCS for: YZ_HRIU_YZ_INDI.ZZ.01 - 2012-01-01 - 05 days
> Traceback (most recent call last):
>    File "s05compute_mwcs.py", line 118, in <module>
>      cur, ref, f.mwcs_low, f.mwcs_high, goal_sampling_rate, -maxlag, f.mwcs_wlen, f.mwcs_step)
>    File "/Users/ech/sismo/MSN/MWCS.py", line 144, in mwcs
>      res = sm.regression.linear_model.WLS(phi, v, w**2).fit()
>    File "/Users/ech/anaconda/lib/python2.7/site-packages/statsmodels/regression/linear_model.py", line 381, in __init__
>      weights=weights, hasconst=hasconst)
>    File "/Users/ech/anaconda/lib/python2.7/site-packages/statsmodels/regression/linear_model.py", line 79, in __init__
>      super(RegressionModel, self).__init__(endog, exog, **kwargs)
>    File "/Users/ech/anaconda/lib/python2.7/site-packages/statsmodels/base/model.py", line 136, in __init__
>      super(LikelihoodModel, self).__init__(endog, exog, **kwargs)
>    File "/Users/ech/anaconda/lib/python2.7/site-packages/statsmodels/base/model.py", line 52, in __init__
>      self.data = handle_data(endog, exog, missing, hasconst, **kwargs)
>    File "/Users/ech/anaconda/lib/python2.7/site-packages/statsmodels/base/data.py", line 397, in handle_data
>      return klass(endog, exog=exog, missing=missing, hasconst=hasconst, **kwargs)
>    File "/Users/ech/anaconda/lib/python2.7/site-packages/statsmodels/base/data.py", line 78, in __init__
>      self._check_integrity()
>    File "/Users/ech/anaconda/lib/python2.7/site-packages/statsmodels/base/data.py", line 246, in _check_integrity
>      if len(self.exog) != len(self.endog):
> TypeError: len() of unsized object
>
>
What are the values of the MWCS_wlen/step/mwcs_high/mwcs_low ? for all 
filters you use ?

Thomas


More information about the MSNoise mailing list