

@classmethod
def __setgluestate__(cls, rec, context):
    dummy_grp = SubsetGroup()
    self = cls(None, dummy_grp)
    (yield self)
    self.group = context.object(rec['group'])
    self.style = context.object(rec['style'])

dataset/ETHPy150Open glue-viz/glue/glue/core/subset_group.py GroupedSubset.__setgluestate__/original