

def _validate_preset(self, preset, mode=presets.RAISE_MODE, default_preset=None):
    default_preset = self.get_default_preset()
    if ((presets.TYPE in preset) and (not (preset[presets.TYPE] == '3D'))):
        if (mode == presets.RAISE_MODE):
            raise CLCCHelperException("'{0}' is not a valid type for 3dl LUT. Choose '3D'".format(preset[presets.TYPE]))
        default_preset[presets.TYPE] = default_preset[presets.TYPE]
    return AbstractLUTHelper._validate_preset(self, preset, mode, default_preset)

dataset/ETHPy150Open mikrosimage/ColorPipe-tools/utils/clcc_helper.py CLCCHelper._validate_preset/VarMisuse@85/148 `preset`->`default_preset`