

def testChannelsAreSeparate(self):
    i = GafferImage.ImageReader()
    i['fileName'].setValue(os.path.expandvars('$GAFFER_ROOT/python/GafferImageTest/images/circles.exr'))
    o = GafferImage.LUT()
    o['in'].setInput(i['out'])
    o['fileName'].setValue(self.lut)
    self.assertNotEqual(o['out'].channelDataHash('R', IECore.V2i(0)), o['out'].channelDataHash('G', IECore.V2i(0)))
    self.assertNotEqual(o['out'].channelData('R', IECore.V2i(0)), o['out'].channelData('G', IECore.V2i(0)))

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferImageTest/LUTTest.py LUTTest.testChannelsAreSeparate/original