History

python/ext/py-fft.c: improve error messages

Paul Brossier committed 10 years ago

Commit 8147e031 parent dfada331 file · +3 −3Browse files

Showing the changes to python/ext (1 of 1 file). Show all

Unified · Split

python/ext/py-fft.c+3−3
@@ -87,7 +87,7 @@ Py_fft_do(Py_fft * self, PyObject * args) · 86 unmodified lines
8787
8888 if (self->vecin.length != self->win_s) {
8989 PyErr_Format(PyExc_ValueError,
90− "input array has length %d, but fft has size %d",
90+ "input array has length %d, but fft expects length %d",
9191 self->vecin.length, self->win_s);
9292 return NULL;
9393 }
@@ -123,8 +123,8 @@ Py_fft_rdo(Py_fft * self, PyObject * args) · 29 unmodified lines
123123
124124 if (self->cvecin.length != self->win_s / 2 + 1) {
125125 PyErr_Format(PyExc_ValueError,
126− "input array has length %d, but fft input has size %d",
127− self->vecin.length, self->win_s / 2 + 1);
126+ "input cvec has length %d, but fft expects length %d",
127+ self->cvecin.length, self->win_s / 2 + 1);
128128 return NULL;
129129 }
130130

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t