Mentions légales du service

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

Fix regression due to d99715f8 which prevent F[::step, J] or F[::step, I] to be handled in pyfaust.

parent 11551f37
Branches
Tags
No related merge requests found
...@@ -635,9 +635,17 @@ cdef class FaustCoreGen@TYPE_NAME@@PROC@: ...@@ -635,9 +635,17 @@ cdef class FaustCoreGen@TYPE_NAME@@PROC@:
NULL, NULL,
0) 0)
else: else:
raise ValueError("Other cases like F[I, J] or F[:, :] can't happen here.") row_indices = np.array(indices[0], dtype=dtype)
# F[:, :] is handlded by slice and F[I, J] is not implemented, it row_indices_view = row_indices
# is rather F[I][:,J] col_indices = np.array(indices[1], dtype=dtype)
col_indices_view = col_indices
core.@CORE_OBJ@ = \
self.@CORE_OBJ@.fancy_idx(&row_indices_view[0],
row_indices.size,
&col_indices_view[0],
col_indices.size)
# F[:, :] is handled by self.slice and F[I, J] is not implemented, it
# is rather F[I][:,J] (it is block un pyfaust.Faust.__getitem__)
return core return core
def save_mat_file(self,filepath): def save_mat_file(self,filepath):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment