oasys-kit / ShadowOui

8 stars 8 forks source link

Foot print reader is not working in window os #238

Closed Jae-yong-Shin closed 11 months ago

Jae-yong-Shin commented 11 months ago

Hello, I changed the options as advised in issue #237, and confirmed that it is working correctly on Linux OS. However, on Windows OS (Windows 10, 11), the footprint reader still doesn't work even after changing the options. Can you identify what the problem might be? If you need any information to diagnose the issue, I will provide it immediately.

image image image

lucarebuffi commented 11 months ago

Windows will never end to surprise me for its horrible relationship with Python. There is no bug whatsoever, but for some mysterious reason the correct signal setup appears if I add one nonsense line of code at the end of the constructor of the involved widget....

from OpticalElement constructor:

    def __init__(self):
        graphical_Options=ow_optical_element.GraphicalOptions(is_mirror=True)

        super().__init__(graphical_Options)

        gui.rubber(self.controlArea)

        gui.rubber(self.mainArea)

        print(self.outputs)

From PlotXY widget constructor:

    def __init__(self):
        super().__init__()

        print(self.inputs)

That printout....solves the problem!!!! I find out while quickly debugging on a windows system. I will prepare a better workaround, but it's complete nonsense.

lucarebuffi commented 11 months ago

Screenshot 2023-10-09 at 11 50 52 AM

lucarebuffi commented 11 months ago

Please update ShadowOui as soon as a new version will be available.

Jae-yong-Shin commented 11 months ago

Thank you for your prompt reply. After the update, the problem is solved.