Module Expr Str Import alias Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num If NameLoad body Import alias Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call NameLoad Str NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A  Preset Testing

 N/A unittest N/A tempfile N/A shutil N/A os utils lut_presets presets lutLab.lut_to_lut lut_to_lut lutLab.curve_to_lut curve_to_lut utils.csp_helper CSP_HELPER utils.ocio_helper create_ocio_processor PyOpenColorIO.Constants INTERP_LINEAR N/A DISPLAY False GeneralTest N/A N/A unittest TestCase N/A N/A General Test : plot lut 1d/3d, convert lut, extract 1d lut

     setUp N/A N/A self N/A N/A N/A test_dir N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ test_files N/A N/A self sample_preset N/A N/A N/A os path join test_dir preset_sample.json N/A N/A self lut3d N/A N/A N/A os path join test_dir saturation.3dl N/A N/A self tmp_dir N/A N/A N/A os path join N/A N/A tempfile gettempdir testCoPipe N/A N/A self preset_path N/A N/A N/A os path join N/A self tmp_dir test_preset.json N/A N/A N/A os mkdir N/A self tmp_dir N/A test_write_and_readback N/A N/A self N/A N/A N/A Write and read back a preset

         N/A preset N/A N/A presets TYPE 1D N/A preset N/A N/A CSP_HELPER complete_preset preset N/A N/A N/A presets write_preset N/A self preset_path preset N/A back_preset N/A N/A presets read_preset N/A self preset_path N/A expression N/A N/A N/A set back_preset issubset N/A set preset N/A N/A N/A self assert_ expression N/A N/A Something went wrong in preset write and read :
Write preset:
{0}
Read one:
{1} format preset back_preset N/A test_convert_from_preset N/A N/A self N/A N/A N/A Read a preset file and write a LUT

         N/A preset N/A N/A presets read_preset N/A self sample_preset N/A outlutfile N/A N/A N/A os path join N/A self tmp_dir test_preset.cube N/A N/A lut_to_lut N/A self lut3d preset preset outlutfile outlutfile N/A proc N/A create_ocio_processor outlutfile interpolation INTERP_LINEAR N/A N/A N/A proc applyRGB N/A 0 0 0 N/A N/A N/A proc applyRGB N/A 1 1 1 N/A DISPLAY N/A N/A plot_that_lut N/A N/A N/A plot_that_lut plot_that_lut outlutfile N/A test_env_presets N/A N/A self N/A N/A N/A  Load presets from env

         N/A loaded_presets N/A N/A presets get_presets_from_env N/A N/A N/A self assert_ N/A N/A len loaded_presets 0 No preset loaded. Default presets should at least have been detected N/A preset N/A N/A N/A loaded_presets values N/A 0 N/A N/A curve_to_lut sRGB None outlutfile N/A self tmp_dir preset preset N/A tearDown N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self tmp_dir N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main