

def __gluestate__(self, context):
    result = {
        
    }
    result['viewer_cls'] = self._viewer_cls.__name__
    result['settings'] = context.do(self._settings)
    result['roi'] = context.id(self._roi)
    return result

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py CustomSubsetState.__gluestate__/original