(self)
return groups
List all saved aggregation groups for this sketch.

        Returns:
            List of aggregation groups (instances of AggregationGroup objects)
List all saved aggregation groups for this sketch.
List all saved aggregation groups for this sketch .
def list_aggregation_groups(self):
        """List all saved aggregation groups for this sketch.

        Returns:
            List of aggregation groups (instances of AggregationGroup objects)
        """
        if self.is_archived():
            raise RuntimeError(
                'Unable to list aggregation groups on an archived sketch.')
        groups = []
        data = self.api.fetch_resource_data(
            f'sketches/{self.id}/aggregation/group/')

        for group_dict in data.get('objects', []):
            if not group_dict.get('id'):
                continue
            group = aggregation.AggregationGroup(sketch=self)
            group.from_saved(group_dict.get('id'))
            groups.append(group)
        return groups
def list_aggregation_groups ( self ) : if self . is_archived ( ) : raise RuntimeError ( 'Unable to list aggregation groups on an archived sketch.' ) groups = [ ] data = self . api . fetch_resource_data ( f'sketches/{self.id}/aggregation/group/' ) for group_dict in data . get ( 'objects' , [ ] ) : if not group_dict . get ( 'id' ) : continue group = aggregation . AggregationGroup ( sketch = self ) group . from_saved ( group_dict . get ( 'id' ) ) groups . append ( group ) return groups