eoyilmaz / displaycal-py3

DisplayCAL Modernization Project
https://eoyilmaz.github.io/displaycal-py3/
GNU General Public License v3.0
698 stars 55 forks source link

"Ambient light level adjustment" error message #368

Closed ostrich closed 4 weeks ago

ostrich commented 1 month ago

OS: Arch Linux DisplayCAL version: 3.9.12 Device: Datacolor Spyder X

On the Calibration screen, when I use the Measure ambient function next to Ambient light level adjustment, I get the following error after the adjustment runs. It seems to be non-fatal, since the adjustment value still populates in the input box.

'<=' not supported between instances of 'int' and 'NoneType'

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/wx/core.py", line 3427, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/DisplayCAL/display_cal.py", line 6843, in ambient_measure_consumer
    if not set_whitepoint and 4000 <= K <= 25000:
                              ^^^^^^^^^^^^^^^^^^
TypeError: '<=' not supported between instances of 'int' and 'NoneType'

Screenshot_20240522_095640