Hello Dylan,
Indeed, this looks like an incompatibility of types passed to resample
... You could maybre try to re-build the scikits-samplerate package
(uninstall and reinstall), that *could* work. Otherwise, either
downgrade numpy, or if you don't actually need the resampling (because
e.g. all your data is 100 Hz and you want to decimate to 20 Hz), you can
ignore it and use Decimate instead.
Could you open an issue on github for this ?
Thanks
Thomas
Le 13/11/2015 21:45, Dylan Mikesell a écrit :
Hi MSNoise folks,
I have a question about numpy. I installed cartopy today and during
the install conda updated a bunch of other libraries, one of which was
numpy. I had numpy 1.9.2 and updated to 1.10.0. Now when running
'compute_cc' I get the following error. I am not completely sure, but
I believe it's related to samplerate and the input numpy data type.
Has anyone ran into this error?
Any thoughts on how to figure it out? I reinstalled scikits.samplrate,
but that hasn't fixed the problem. And interestingly, the 'bugreport'
says that samplerate is not found so perhaps this is the problem. But
I haven't been able to figure it out yet and this error leads me to
believe it's a problem with the numpy type.
Thanks,
Dylan
[dmikesell@sonic deconData]$ msnoise compute_cc
Traceback (most recent call last):
File "/usr/local/anaconda/bin/msnoise", line 11, in <module>
sys.exit(run())
File
"/usr/local/anaconda/lib/python2.7/site-packages/msnoise/scripts/msnoise.py",
line 393, in run
cli(obj={})
File
"/usr/local/anaconda/lib/python2.7/site-packages/click/core.py", line
700, in __call__
return self.main(*args, **kwargs)
File
"/usr/local/anaconda/lib/python2.7/site-packages/click/core.py", line
680, in main
rv = self.invoke(ctx)
File
"/usr/local/anaconda/lib/python2.7/site-packages/click/core.py", line
1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File
"/usr/local/anaconda/lib/python2.7/site-packages/click/core.py", line
873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File
"/usr/local/anaconda/lib/python2.7/site-packages/click/core.py", line
508, in invoke
return callback(*args, **kwargs)
File
"/usr/local/anaconda/lib/python2.7/site-packages/msnoise/scripts/msnoise.py",
line 173, in compute_cc
from ..s03compute_cc import main
File
"/usr/local/anaconda/lib/python2.7/site-packages/msnoise/s03compute_cc.py",
line 71, in <module>
from scikits.samplerate import resample
File
"/usr/local/anaconda/lib/python2.7/site-packages/scikits.samplerate-0.3.3-py2.7-linux-x86_64.egg/scikits/samplerate/__init__.py",
line 6, in <module>
from _samplerate import resample, available_convertors,
src_version_str, \
File "numpy.pxd", line 43, in scikits.samplerate._samplerate
(scikits/samplerate/_samplerate.c:3807)
ValueError: numpy.dtype does not appear to be the correct type object