We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code demonstrates an issue where writing or reading a Box2f attribute into an EXR's metadata fails:
import OpenEXR import numpy as np metadata = { "test_box2i": ((0, 0), (1, 1)), "test_box2f": ((0.0, 0.0), (1.0, 1.0)), } image = OpenEXR.Part( header={ "compression": OpenEXR.ZIP_COMPRESSION, "type": OpenEXR.scanlineimage, "test_box2f": ((0.0, 0.0), (1.0, 1.0)), "test_box2i": ((0, 0), (1, 1)), }, channels={ "R": np.zeros((128, 128), dtype=np.float32), "G": np.zeros((128, 128), dtype=np.float32), "B": np.zeros((128, 128), dtype=np.float32), }, ) f = OpenEXR.File([image]) f.write("metadata.exr")
The relevant lines of output from exrheader metadata.exr show that the box2i is written correctly, but the value for the box2f is wrong:
exrheader metadata.exr
test_box2f (type box2f): (3.40282e+38 3.40282e+38) - (-3.40282e+38 -3.40282e+38) test_box2i (type box2i): (0 0) - (1 1)
The text was updated successfully, but these errors were encountered:
Thanks for the catch, there was a glitch in the test as well as the code. Fixed in #1944.
Sorry, something went wrong.
No branches or pull requests
The following code demonstrates an issue where writing or reading a Box2f attribute into an EXR's metadata fails:
The relevant lines of output from
exrheader metadata.exr
show that the box2i is written correctly, but the value for the box2f is wrong:The text was updated successfully, but these errors were encountered: