def __call__(self, key, part=None):
        """Make possible to retrieve channels by key.

        key: string or integer.
            The channel index number or channel name.

        part: int or None
            The 0-based enumeration of a True part to return. This
            has an effect whether or not the mask or filter is turned
            on. Raise IndexError if the part does not exist.
        """
        # Primary need is to get an integer from key since D.keys are integers.

        i = self._key(key)

        if part is not None:
            sl = datautils.slicelist(self.mask)
            return self.D[i][sl[part]]
        elif self.nof == 'nan':
            return datautils.masked(self.D[i], self.mask)
        elif self.nof == 'filter':
            return self.D[i][self.mask]
        elif self.nof:
            raise ValueError('The nof value is invalid: ' + str(self.nof) +
                             '\nmust be "nan", "filter" or falsish')
        else:
            return self.D[i]
def __call__ ( self , key , part = None ) : i = self . _key ( key ) if part is not None : sl = datautils . slicelist ( self . mask ) return self . D [ i ] [ sl [ part ] ] elif self . nof == 'nan' : return datautils . masked ( self . D [ i ] , self . mask ) elif self . nof == 'filter' : return self . D [ i ] [ self . mask ] elif self . nof : raise ValueError ( 'The nof value is invalid: ' + str ( self . nof ) + '\nmust be "nan", "filter" or falsish' ) else : return self . D [ i ]
Make possible to retrieve channels by key.

        key: string or integer.
            The channel index number or channel name.

        part: int or None
            The 0-based enumeration of a True part to return. This
            has an effect whether or not the mask or filter is turned
            on. Raise IndexError if the part does not exist.