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 (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
87 87
88 if (self->vecin.length != self->win_s) {88 if (self->vecin.length != self->win_s) {
89 PyErr_Format(PyExc_ValueError,89 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",
91 self->vecin.length, self->win_s);91 self->vecin.length, self->win_s);
92 return NULL;92 return NULL;
93 }93 }
@@ -123,8 +123,8 @@ Py_fft_rdo(Py_fft * self, PyObject * args) · 29 unmodified lines
123 123
124 if (self->cvecin.length != self->win_s / 2 + 1) {124 if (self->cvecin.length != self->win_s / 2 + 1) {
125 PyErr_Format(PyExc_ValueError,125 PyErr_Format(PyExc_ValueError,
126 "input array has length %d, but fft input has size %d",126 "input cvec has length %d, but fft expects length %d",
127 self->vecin.length, self->win_s / 2 + 1);127 self->cvecin.length, self->win_s / 2 + 1);
128 return NULL;128 return NULL;
129 }129 }
130 130

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