def test_multipart_in(self): if not hasattr(OpenEXR, 'MultiPartInputFile'): return infile = OpenEXR.MultiPartInputFile("Beachball_Multipart.exr") self.assertEqual(10, infile.parts()) for i in range(10): h = infile.header(i) for ch in h['channels'].keys(): data = infile.channel(i, ch)
def load_red_mp(filename): oexr = OpenEXR.MultiPartInputFile(filename) return oexr.channel(0, 'R') """ Write the pixels to two images, first as a single call,