def expected_dims(self, data=None):
    'Calculate size of non-degenerate dimensions\n\n        Figures out size, in each dimension, of expected input data\n\n        @return: size of each dimension for this slice, excluding degenerate\n        @rtype: list of int\n        '
    return [self.counts[i] for i in range(self.dims) if (not self.degen[i])]
Calculate size of non-degenerate dimensions

Figures out size, in each dimension, of expected input data

@return: size of each dimension for this slice, excluding degenerate
@rtype: list of int
def expected_dims(self, data=None):
    'Calculate size of non-degenerate dimensions\n\n        Figures out size, in each dimension, of expected input data\n\n        @return: size of each dimension for this slice, excluding degenerate\n        @rtype: list of int\n        '
    return [self.counts[i] for i in range(self.dims) if (not self.degen[i])]