[MSNoise] [SPAM] Re: Error when computing_cc

hsy119 at mail.ustc.edu.cn hsy119 at mail.ustc.edu.cn
Thu Mar 23 09:58:33 UTC 2017


Hello, Thomas

Follow your suggestion, I just downgrade numpy to 1.11, and compute_cc seems to be ok now. Much obliged!
Looking forward to the new version!

Shuye Huang


> -----原始邮件-----
> 发件人: "Thomas Lecocq" <thomas.lecocq at oma.be>
> 发送时间: 2017-03-23 16:15:04 (星期四)
> 收件人: msnoise at mailman-as.oma.be
> 抄送: 
> 主题: [SPAM] Re: [MSNoise] Error when computing_cc
> 
> Dear Shuye,
> 
> Ah, now this bug is due to a too recent version of numpy, and a bug in 
> msnoise with that version. The error arises because
> 
> :Nfft/2
> 
> is not an "integer" but a float, which is no longer allowed by numpy.
> 
> So either you downgrade numpy (conda install "numpy=1.11") or you use 
> msnoise master from github. I'm working on a release (1.5) soon, so this 
> should be corrected .
> 
> Thomas
> 
> Le 23/03/2017 à 04:19, hsy119 at mail.ustc.edu.cn a écrit :
> > Hi, Thomas
> >
> > Sorry to reply so late.
> > I tried to uninstall numpy and use conda to install again, it seems no problem.
> > But I tried again to run compute_cc command, some error occurs again.
> > The bug report shows:
> >
> > Process Process-1:
> > Traceback (most recent call last):
> >    File "/public/software/anaconda3/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
> >      self.run()
> >    File "/public/software/anaconda3/lib/python3.5/multiprocessing/process.py", line 93, in run
> >      self._target(*self._args, **self._kwargs)
> >    File "/public/software/anaconda3/lib/python3.5/site-packages/msnoise/s03compute_cc.py", line 653, in main
> >      trame2h[i]*cp, Nfft, dt, low, high, plot=False)
> >    File "/public/software/anaconda3/lib/python3.5/site-packages/msnoise/whiten.py", line 39, in whiten
> >      freqVec = scipy.fftpack.fftfreq(Nfft,d=delta)[:Nfft/2]
> > TypeError: slice indices must be integers or None or have an __index__ method
> >
> > Maybe it's because I set the wrong filter? But I do not know how to correct it.
> >
> > Best Wishes,
> >
> > Shuye Huang
> >
> >> -----原始邮件-----
> >> 发件人: "Thomas Lecocq" <thomas.lecocq at oma.be>
> >> 发送时间: 2017-03-20 16:08:31 (星期一)
> >> 收件人: msnoise at mailman-as.oma.be
> >> 抄送:
> >> 主题: [SPAM] Re: [MSNoise] Error when computing_cc
> >>
> >> Hi Shuye,
> >>
> >> Never seen this error, it is indeed something wrong with numpy. It looks
> >> like numpy and its dependencies haven't been installed the same way (or
> >> installed at all). you could remove numpy (pip uninstall numpy) and,
> >> assuming you are using anaconda, use "conda install numpy"
> >>
> >> Thomas
> >>
> >>
> >> Le 20/03/2017 à 08:17, hsy119 at mail.ustc.edu.cn a écrit :
> >>> Hi, Thomas and users
> >>>
> >>> I just got an error when I tried to run compute_cc command. It shows:
> >>>
> >>> [hsy119 at yhjs3 msnoise_my]$ msnoise compute_cc
> >>> 2017-03-20 15:18:30 [INFO] *** Starting: Compute CC ***
> >>> 2017-03-20 15:18:30 [INFO] Will compute ZZ RR TT TR RT ZR RZ TZ ZT
> >>> 2017-03-20 15:18:30 [INFO] New CC Job: 2015-01-10 (3 pairs with 3 stations)
> >>> 2017-03-20 15:18:31 [DEBUG] G2.XJ16.Z Reading 1 Files
> >>> 2017-03-20 15:18:31 [DEBUG] Checking sample alignment
> >>> 2017-03-20 15:18:31 [DEBUG] Checking Gaps
> >>> Intel MKL FATAL ERROR: Cannot load libmkl_def.so.
> >>>
> >>> Is there something wrong with numpy?
> >>>
> >>> Best Regards,
> >>> Shuye Huang
> >>> _______________________________________________
> >>> MSNoise mailing list
> >>> MSNoise at mailman-as.oma.be
> >>> http://mailman-as.oma.be/mailman/listinfo/msnoise
> >> _______________________________________________
> >> MSNoise mailing list
> >> MSNoise at mailman-as.oma.be
> >> http://mailman-as.oma.be/mailman/listinfo/msnoise
> > _______________________________________________
> > MSNoise mailing list
> > MSNoise at mailman-as.oma.be
> > http://mailman-as.oma.be/mailman/listinfo/msnoise
> 
> _______________________________________________
> MSNoise mailing list
> MSNoise at mailman-as.oma.be
> http://mailman-as.oma.be/mailman/listinfo/msnoise


More information about the MSNoise mailing list