

def test_convert_from_preset(self):
    'Read a preset file and write a LUT\n\n        '
    preset = presets.read_preset(self.sample_preset)
    outlutfile = os.path.join(preset.tmp_dir, 'test_preset.cube')
    lut_to_lut(self.lut3d, preset=preset, outlutfile=outlutfile)
    proc = create_ocio_processor(outlutfile, interpolation=INTERP_LINEAR)
    proc.applyRGB([0, 0, 0])
    proc.applyRGB([1, 1, 1])
    if DISPLAY:
        import plot_that_lut
        plot_that_lut.plot_that_lut(outlutfile)

dataset/ETHPy150Open mikrosimage/ColorPipe-tools/test/preset_test.py GeneralTest.test_convert_from_preset/VarMisuse@31/66 `self`->`preset`