def expand(self, data):
    "Expands the record dimension of this slice to hold a set of data\n\n        If the length of data (outermost dimension) is larger than the record\n        count (counts[0]) for this slice, expand the slice to hold all the data.\n        This requires that the record dimension of the slice not be degenerate,\n        and also that it not have been completely specified when the hyperslice\n        was created (i.e. record dimension either ellipsis or no specified\n        stop.)\n\n        Does *not* expand any other dimension, since that's Very Hard in CDF.\n\n        @param data: the data which are intended to be stored in this slice\n        @type data: list\n        "
    rec_slice = self.expanded_key[0]
    if ((not self.rv) or isinstance(data, str_classes) or self.degen[0] or (not hasattr(rec_slice, 'stop'))):
        return
    if (len(data) < self.counts[0]):
        if ((rec_slice.stop is None) and (rec_slice.step in (None, 1))):
            self.counts[0] = len(data)
    elif (len(data) > self.counts[0]):
        if (rec_slice.step in (None, 1)):
            self.counts[0] = len(data)
Expands the record dimension of this slice to hold a set of data

If the length of data (outermost dimension) is larger than the record
count (counts[0]) for this slice, expand the slice to hold all the data.
This requires that the record dimension of the slice not be degenerate,
and also that it not have been completely specified when the hyperslice
was created (i.e. record dimension either ellipsis or no specified
stop.)

Does *not* expand any other dimension, since that's Very Hard in CDF.

@param data: the data which are intended to be stored in this slice
@type data: list
def expand(self, data):
    "Expands the record dimension of this slice to hold a set of data\n\n        If the length of data (outermost dimension) is larger than the record\n        count (counts[0]) for this slice, expand the slice to hold all the data.\n        This requires that the record dimension of the slice not be degenerate,\n        and also that it not have been completely specified when the hyperslice\n        was created (i.e. record dimension either ellipsis or no specified\n        stop.)\n\n        Does *not* expand any other dimension, since that's Very Hard in CDF.\n\n        @param data: the data which are intended to be stored in this slice\n        @type data: list\n        "
    rec_slice = self.expanded_key[0]
    if ((not self.rv) or isinstance(data, str_classes) or self.degen[0] or (not hasattr(rec_slice, 'stop'))):
        return
    if (len(data) < self.counts[0]):
        if ((rec_slice.stop is None) and (rec_slice.step in (None, 1))):
            self.counts[0] = len(data)
    elif (len(data) > self.counts[0]):
        if (rec_slice.step in (None, 1)):
            self.counts[0] = len(data)