Changeset 8147e03 for python/ext


Ignore:
Timestamp:
May 2, 2016, 12:03:27 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
99aa353
Parents:
dfada33
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-fft.c

    rdfada33 r8147e03  
    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;
     
    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  }
Note: See TracChangeset for help on using the changeset viewer.