def __getitem__(self, index):
        """Mimic NumPy indexing for arrays."""
        chain = self._chain

        if chain is not None:
            vlarrays = [self._vlarrays[chain]]
        else:
            vlarrays = self._vlarrays

        for i, vlarray in enumerate(vlarrays):
            if i == 0:
                out = np.asarray(vlarray[index])
            else:
                out = np.hstack((out, vlarray[index]))

        return out
def __getitem__ ( self , index ) : chain = self . _chain if chain is not None : vlarrays = [ self . _vlarrays [ chain ] ] else : vlarrays = self . _vlarrays for i , vlarray in enumerate ( vlarrays ) : if i == 0 : out = np . asarray ( vlarray [ index ] ) else : out = np . hstack ( ( out , vlarray [ index ] ) ) return out
Mimic NumPy indexing for arrays.