-----原始邮件-----
发件人: "Thomas Lecocq" <Thomas.Lecocq(a)oma.be>
发送时间: 2017-03-17 18:13:53 (星期五)
收件人: msnoise(a)mailman-as.oma.be
抄送:
主题: Re: [MSNoise] Scan_archive issue
Shuye,
Thanks for reporting this.
Indeed this doens't work for you. But it's not an MSNoise issue, it's
only because it's trickier to install samplerate on py3, still, it's doable.
In the next version of MSNoise, we have added an third option for
resampling, called "Lanczos", using the ObsPy built-in resampling
method. We tested it against scikits.samplerate and the results are
identical, except close to Nyquist (different decimation filters).
Cheers,
Thomas
Le 17-03-17 à 10:16, hsy119(a)mail.ustc.edu.cn a écrit :
Well,I use Python 3, and scikits.samplerate
cannot be successfully installed on my server.
But anyway, I choose Decimate resampling method, so it's not very serious.
Shuye
> -----原始邮件-----
> 发件人: "Thomas Lecocq" <Thomas.Lecocq(a)oma.be>
> 发送时间: 2017-03-17 16:33:12 (星期五)
> 收件人: msnoise(a)mailman-as.oma.be
> 抄送:
> 主题: Re: [MSNoise] Scan_archive issue
>
> > It seems some functions don't work well on Python 3.
>
> to my knowledge, just this one.
>
> Thomas
>
>
> Le 17-03-17 à 09:27, hsy119(a)mail.ustc.edu.cn a écrit :
>> Hi, Thomas
>>
>> Thank you for answering
>> It seems some functions don't work well on Python 3.
>>
>> Have a nice day!
>>
>> Shuye
>>
>>
>>> -----原始邮件-----
>>> 发件人: "Thomas Lecocq" <Thomas.Lecocq(a)oma.be>
>>> 发送时间: 2017-03-17 15:40:08 (星期五)
>>> 收件人: msnoise(a)mailman-as.oma.be
>>> 抄送:
>>> 主题: Re: [MSNoise] Scan_archive issue
>>>
>>> Hi Shuye,
>>>
>>>
>>> this is a bug in MSNoise running on Python3. It has been reported
>>> (
https://github.com/ROBelgium/MSNoise/issues/74) but I haven't
corrected
>>> it yet.
>>>
>>> Meanwhile, indeed, the --init should work OK (although slower)...
>>>
>>> Thomas
>>>
>>>
>>> Le 17-03-17 à 07:50, caronvossen a écrit :
>>>> Hi Shuye,
>>>> Maybe if you omit "-t 2"? I never use that part, because it
gave me a lot of errors at the beginning. However, I am not sure whether it is the same
problem as you have right now, because for me it didn't work when I used the --init
option either.
>>>> I hope this helps. Otherwise Thomas or someone else will probably have a
better idea how to solve your problem :)
>>>> Good luck!
>>>> Best wishes,
>>>> Caron Vossen
>>>> Verzonden vanaf mijn Samsung Galaxy-smartphone.
>>>> -------- Oorspronkelijk bericht --------Van: hsy119(a)mail.ustc.edu.cn
Datum: 17-03-17 06:48 (GMT+01:00) Aan: msnoise(a)mailman-as.oma.be Onderwerp: [MSNoise]
Scan_archive issue
>>>> Hi, Thomas and users
>>>>
>>>> I meet a bug when I try to do scan_archive.
>>>> First time,I used --init option, and data was added successfully.
>>>> But when I try not to use --init option, there's a bug.
>>>> Here's bug report:
>>>>
>>>> [hsy119@yhjs3 msnoise_my]$ msnoise -t 2 scan_archive
>>>> 2017-03-17 13:22:42 [INFO] *** Starting: Scan Archive ***
>>>> 2017-03-17 13:22:42 [INFO] Will work on 2 threads
>>>> Traceback (most recent call last):
>>>> File "/public/software/anaconda3/bin/msnoise", line 11,
in <module>
>>>> sys.exit(run())
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/msnoise/scripts/msnoise.py",
line 614, in run
>>>> cli(obj={})
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line
716, in __call__
>>>> return self.main(*args, **kwargs)
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line
696, in main
>>>> rv = self.invoke(ctx)
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line
1060, in invoke
>>>> return _process_result(sub_ctx.command.invoke(sub_ctx))
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line
889, in invoke
>>>> return ctx.invoke(self.callback, **ctx.params)
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/click/core.py", line
534, in invoke
>>>> return callback(*args, **kwargs)
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/click/decorators.py",
line 17, in new_func
>>>> return f(get_current_context(), *args, **kwargs)
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/msnoise/scripts/msnoise.py",
line 262, in scan_archive
>>>> main(init, threads=ctx.obj['MSNOISE_threads'])
>>>> File
"/public/software/anaconda3/lib/python3.5/site-packages/msnoise/s01scan_archive.py",
line 192, in main
>>>> files = sorted(stdout.replace('\r',
'').split('\n'))
>>>> TypeError: a bytes-like object is required, not 'str'
>>>>
>>>>
>>>> So now, every time I want to add some new data, I have to use
'--init', not sure whether it would cause new problem
>>>> What shall I do?
>>>>
>>>> Best Regard
>>>> Shuye Huang
>>>> _______________________________________________
>>>> MSNoise mailing list
>>>> MSNoise(a)mailman-as.oma.be
>>>>
http://mailman-as.oma.be/mailman/listinfo/msnoise
>>>> _______________________________________________
>>>> MSNoise mailing list
>>>> MSNoise(a)mailman-as.oma.be
>>>>
http://mailman-as.oma.be/mailman/listinfo/msnoise
>>> _______________________________________________
>>> MSNoise mailing list
>>> MSNoise(a)mailman-as.oma.be
>>>
http://mailman-as.oma.be/mailman/listinfo/msnoise
>> _______________________________________________
>> MSNoise mailing list
>> MSNoise(a)mailman-as.oma.be
>>
http://mailman-as.oma.be/mailman/listinfo/msnoise
> _______________________________________________
> MSNoise mailing list
> MSNoise(a)mailman-as.oma.be
>
http://mailman-as.oma.be/mailman/listinfo/msnoise
_______________________________________________
MSNoise mailing list
MSNoise(a)mailman-as.oma.be
http://mailman-as.oma.be/mailman/listinfo/msnoise
_______________________________________________
MSNoise mailing list
MSNoise(a)mailman-as.oma.be