

def __gluestate__(self, context):
    return dict(label=self.label, state=context.id(self.subset_state), style=context.do(self.style), subsets=list(map(context.id, self.subsets)))

dataset/ETHPy150Open glue-viz/glue/glue/core/subset_group.py SubsetGroup.__gluestate__/original