

def to_mask(self, data, view=None):
    settings = SettingsOracle(self._settings, layer=data, roi=self._roi, view=view)
    return introspect_and_call(self._viewer_cls._custom_functions['select'], settings)

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