Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f276b5a0 authored by hhakim's avatar hhakim
Browse files

Fix dtype error in pyx code of polyCoeffs and polyGroupCoeffs.

parent 7b1fa8a3
No related branches found
No related tags found
No related merge requests found
......@@ -816,7 +816,7 @@ cdef class FaustAlgoGen@TYPE_NAME@:
dtype_err = ValueError('out dtype isn\'t valid.')
if not y.flags['F_CONTIGUOUS']:
raise ValueError('the array must be in fortran/column continous order.')
if y.dtype != '@TYPE@':
if y.dtype != type2dtype('@TYPE@'):
raise dtype_err
yview = y
else:
......@@ -897,7 +897,7 @@ cdef class FaustAlgoGen@TYPE_NAME@:
dtype_err = ValueError('out dtype isn\'t valid.')
if not y.flags['F_CONTIGUOUS']:
raise ValueError('the array must be in fortran/column continous order.')
if y.dtype != '@TYPE@':
if y.dtype != type2dtype('@TYPE@'):
raise dtype_err
addr = y.__array_interface__['data'][0]
yview[i] = <@TYPE@*> addr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment