ref: b5cec0c844ea8d85d38505ba8f611424e6897a8a
parent: fb1c5e2054eb859d412e1e28cb9c045c8219854c
author: Paul Brossier <piem@piem.org>
date: Fri Oct 26 15:21:11 EDT 2018
[python] fix error messages in filterbank
--- a/python/ext/py-filterbank.c
+++ b/python/ext/py-filterbank.c
@@ -94,7 +94,7 @@
if (self->vec.length != self->win_s / 2 + 1) {
PyErr_Format(PyExc_ValueError,
- "input cvec has length %d, but fft expects length %d",
+ "input cvec has length %d, but filterbank expects length %d",
self->vec.length, self->win_s / 2 + 1);
return NULL;
}
@@ -139,7 +139,7 @@
&(self->freqs), samplerate);
if (err > 0) {
PyErr_SetString (PyExc_ValueError,
- "error when setting filter to A-weighting");
+ "error when running set_triangle_bands");
return NULL;
}
Py_RETURN_NONE;
@@ -158,7 +158,7 @@
err = aubio_filterbank_set_mel_coeffs_slaney (self->o, samplerate);
if (err > 0) {
PyErr_SetString (PyExc_ValueError,
- "error when setting filter to A-weighting");
+ "error when running set_mel_coeffs_slaney");
return NULL;
}
Py_RETURN_NONE;