def get_data(self, fields=None):
    fields = ensure_list(fields)
    self.base_object.get_data(fields)
    ind = self._cond_ind
    for field in fields:
        f = self.base_object[field]
        if (f.shape != ind.shape):
            parent = getattr(self, 'parent', self.base_object)
            self.field_data[field] = parent[field][self._part_ind(field[0])]
        else:
            self.field_data[field] = self.base_object[field][ind]
def get_data(self, fields=None):
    fields = ensure_list(fields)
    self.base_object.get_data(fields)
    ind = self._cond_ind
    for field in fields:
        f = self.base_object[field]
        if (f.shape != ind.shape):
            parent = getattr(self, 'parent', self.base_object)
            self.field_data[field] = parent[field][self._part_ind(field[0])]
        else:
            self.field_data[field] = self.base_object[field][ind]