File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 22
22
import Imath
23
23
import numpy as np
24
24
import OpenEXR
25
+ from six .moves import range
26
+ from six .moves import zip
25
27
26
28
27
29
_np_to_exr = {
28
30
np .float16 : Imath .PixelType .HALF ,
29
31
np .float32 : Imath .PixelType .FLOAT ,
30
32
np .uint32 : Imath .PixelType .UINT ,
31
33
}
32
- _exr_to_np = dict (zip (_np_to_exr .values (), _np_to_exr .keys ()))
34
+ _exr_to_np = dict (list ( zip (list ( _np_to_exr .values ()), list ( _np_to_exr .keys ()) )))
33
35
34
36
35
37
def channels_to_ndarray (exr , channel_names ):
Original file line number Diff line number Diff line change 15
15
16
16
# pylint: disable=c-extension-no-member
17
17
18
+ from __future__ import absolute_import
19
+ from __future__ import division
20
+ from __future__ import print_function
21
+
18
22
import collections
19
23
import tempfile
20
24
23
27
import numpy as np
24
28
import OpenEXR
25
29
30
+ from six .moves import range
26
31
from tensorflow_graphics .io import exr
27
32
from tensorflow_graphics .util import test_case
28
33
You can’t perform that action at this time.
0 commit comments