Changeset a138975 for python/ext/py-cvec.c
- Timestamp:
- May 12, 2016, 1:28:35 AM (8 years ago)
- 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:
- 2ee90df
- Parents:
- 911c22f
- git-author:
- Paul Brossier <piem@piem.org> (05/11/16 15:10:02)
- git-committer:
- Paul Brossier <piem@piem.org> (05/12/16 01:28:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-cvec.c
r911c22f ra138975 141 141 Py_cvec_set_norm (Py_cvec * vec, PyObject *input, void * closure) 142 142 { 143 npy_intp length; 143 144 if (!PyAubio_IsValidVector(input)) { 144 145 return 1; 145 146 } 146 npy_intplength = PyArray_SIZE ((PyArrayObject *)input);147 length = PyArray_SIZE ((PyArrayObject *)input); 147 148 if (length != vec->length) { 148 149 PyErr_Format (PyExc_ValueError, … … 161 162 Py_cvec_set_phas (Py_cvec * vec, PyObject *input, void * closure) 162 163 { 164 npy_intp length; 163 165 if (!PyAubio_IsValidVector(input)) { 164 166 return 1; 165 167 } 166 npy_intplength = PyArray_SIZE ((PyArrayObject *)input);168 length = PyArray_SIZE ((PyArrayObject *)input); 167 169 if (length != vec->length) { 168 170 PyErr_Format (PyExc_ValueError,
Note: See TracChangeset
for help on using the changeset viewer.