

def write_3d_lut(self, process_function, file_path, preset):
    data = self._get_3d_data(process_function, preset)[1]
    self._check_output_range(preset)
    lutfile = open(file_path, 'w+')
    lutfile.write(self.get_header(preset))
    for rgb in data:
        lutfile.write(self._get_rgb_value_line(preset, rgb))
    lutfile.close()
    return self.get_export_message(file_path)

dataset/ETHPy150Open mikrosimage/ColorPipe-tools/utils/clcc_helper.py CLCCHelper.write_3d_lut/original