From: Tim H. <tim...@ie...> - 2006-10-20 14:17:47
|
Sebastien Bardeau wrote: > Ooops sorry there was two mistakes with the 'hasslice' flag. This seems > now to work for me. > > [SNIP code] That looks overly complicated. I believe that this (minimally tested in a slightly different setting) or some variation should work: return self[...,newaxis][index].reshape(self[index].shape) -tim |