Vendor phase in .bmp format #154
Closed
BolitaKinki
started this conversation in
Ideas
Replies: 1 comment
-
|
Hi Daniel, Sorry for my late reply. This was fixed in #129 / fe26cca (as part of 0.3.0). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would suggest importing Image from PIL in the slm.py module because I encountered an issue when using 'load_vendor_phase_correction()' with .bmp files.
When calling 'slm.load_vendor_phase_correction(file_path='file.bmp')' on a ScreenMirrored SLM, I get:
line 255, in load_vendor_phase_correction
phase_correction = self.bitresolution - 1 - np.array(Image.open(file_path), dtype=float)
NameError: name 'Image' is not defined
Adding 'from PIL import Image' at the top of 'slm.py' resolved the issue for me.
Cheers,
Daniel.
Beta Was this translation helpful? Give feedback.
All reactions