1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129
|
# -*- coding: UTF-8 -*-
"""
Interactive display calibration UI
"""
from time import sleep, strftime
import os
import re
import sys
from DisplayCAL.wxaddons import wx
from DisplayCAL.config import (
getbitmap,
getcfg,
get_icon_bundle,
get_display_number,
get_display_rects,
get_verified_path,
setcfg,
)
from DisplayCAL.log import get_file_logger
from DisplayCAL.meta import name as appname, version as appversion
from DisplayCAL.util_os import launch_file, waccess
from DisplayCAL.wxaddons import CustomEvent
from DisplayCAL.wxMeasureFrame import MeasureFrame
from DisplayCAL.wxwindows import (
BaseApp,
BaseFrame,
FlatShadedButton,
numpad_keycodes,
nav_keycodes,
processing_keycodes,
wx_Panel,
)
from DisplayCAL import colormath
from DisplayCAL import config
from DisplayCAL import localization as lang
from DisplayCAL import report
BGCOLOUR = wx.Colour(0x33, 0x33, 0x33)
class FlatShadedNumberedButton(FlatShadedButton):
def __init__(
self,
parent,
id=wx.ID_ANY,
bitmap=None,
label="",
pos=wx.DefaultPosition,
size=wx.DefaultSize,
style=wx.NO_BORDER,
validator=wx.DefaultValidator,
name="gradientbutton",
bgcolour=None,
fgcolour=None,
index=0,
):
FlatShadedButton.__init__(
self,
parent,
id,
bitmap,
label,
pos,
size,
style,
validator,
name,
bgcolour,
fgcolour,
)
self.index = index
def OnGainFocus(self, event):
self.TopLevelParent.index = self.index
FlatShadedButton.OnGainFocus(self, event)
class DisplayUniformityFrame(BaseFrame):
def __init__(
self,
parent=None,
handler=None,
keyhandler=None,
start_timer=True,
rows=None,
cols=None,
):
if not rows:
rows = getcfg("uniformity.rows")
if not cols:
cols = getcfg("uniformity.cols")
BaseFrame.__init__(
self,
parent,
wx.ID_ANY,
lang.getstr("report.uniformity"),
style=wx.DEFAULT_FRAME_STYLE | wx.TAB_TRAVERSAL,
name="displayuniformityframe",
)
self.SetIcons(get_icon_bundle([256, 48, 32, 16], appname))
self.SetBackgroundColour(BGCOLOUR)
self.sizer = wx.GridSizer(rows, cols, 0, 0)
self.SetSizer(self.sizer)
self.rows = rows
self.cols = cols
self.colors = (
wx.WHITE,
wx.Colour(192, 192, 192),
wx.Colour(128, 128, 128),
wx.Colour(64, 64, 64),
)
self.labels = {}
self.panels = []
self.buttons = []
for index in range(rows * cols):
panel = wx_Panel(self, style=wx.BORDER_SIMPLE)
panel.SetBackgroundColour(BGCOLOUR)
sizer = wx.BoxSizer(wx.VERTICAL)
panel.SetSizer(sizer)
self.panels.append(panel)
button = FlatShadedNumberedButton(
panel,
label=lang.getstr("measure"),
bitmap=getbitmap("theme/icons/10x10/record"),
index=index,
)
button.Bind(wx.EVT_BUTTON, self.measure)
self.buttons.append(button)
label = wx.StaticText(panel)
label.SetForegroundColour(wx.WHITE)
self.labels[index] = label
sizer.Add(label, 1, wx.ALIGN_CENTER)
sizer.Add(
button,
0,
wx.ALIGN_CENTER | wx.BOTTOM,
# | wx.LEFT | wx.RIGHT,
border=8,
)
self.sizer.Add(panel, 1, wx.EXPAND)
self.disable_buttons()
self.keyhandler = keyhandler
self.id_to_keycode = {}
if sys.platform == "darwin":
# Use an accelerator table for tab, space, 0-9, A-Z, numpad,
# navigation keys and processing keys
keycodes = [wx.WXK_TAB, wx.WXK_SPACE]
keycodes.extend(list(range(ord("0"), ord("9"))))
keycodes.extend(list(range(ord("A"), ord("Z"))))
keycodes.extend(numpad_keycodes)
keycodes.extend(nav_keycodes)
keycodes.extend(processing_keycodes)
for keycode in keycodes:
self.id_to_keycode[wx.Window.NewControlId()] = keycode
accels = []
for id in self.id_to_keycode:
keycode = self.id_to_keycode[id]
self.Bind(wx.EVT_MENU, self.key_handler, id=id)
accels.append((wx.ACCEL_NORMAL, keycode, id))
if keycode == wx.WXK_TAB:
accels.append((wx.ACCEL_SHIFT, keycode, id))
self.SetAcceleratorTable(wx.AcceleratorTable(accels))
else:
self.Bind(wx.EVT_CHAR_HOOK, self.key_handler)
# Event handlers
self.Bind(wx.EVT_CLOSE, self.OnClose, self)
self.Bind(wx.EVT_MOVE, self.OnMove, self)
self.timer = wx.Timer(self)
if handler:
self.Bind(wx.EVT_TIMER, handler, self.timer)
self.Bind(wx.EVT_WINDOW_DESTROY, self.OnDestroy, self)
# Final initialization steps
self.logger = get_file_logger("uniformity")
self._setup()
self.Show()
if start_timer:
self.start_timer()
def EndModal(self, returncode=wx.ID_OK):
return returncode
def MakeModal(self, makemodal=False):
pass
def OnClose(self, event):
if not self.timer.IsRunning():
self.Destroy()
else:
self.keepGoing = False
def OnDestroy(self, event):
self.stop_timer()
del self.timer
if not hasattr(wx.Window, "UnreserveControlId"):
return 0
for id in self.id_to_keycode.keys():
if id >= 0:
continue
try:
wx.Window.UnreserveControlId(id)
except wx.wxAssertionError as exception:
print(exception)
return 0
def OnMove(self, event):
pass
def Pulse(self, msg=""):
return self.keepGoing, False
def Resume(self):
self.keepGoing = True
def Show(self, show=True):
if show:
display_no = getcfg("display.number") - 1
if display_no < 0 or display_no > wx.Display.GetCount() - 1:
display_no = 0
else:
display_no = get_display_number(display_no)
x, y, w, h = wx.Display(display_no).ClientArea
# Place frame on correct display
self.SetPosition((x, y))
self.SetSize((w, h))
self.disable_buttons()
wx.CallAfter(self.Maximize)
wx.Frame.Show(self, show)
self.panels[0].SetFocus()
def UpdateProgress(self, value, msg=""):
return self.Pulse(msg)
def UpdatePulse(self, msg=""):
return self.Pulse(msg)
def disable_buttons(self):
self.enable_buttons(False)
def enable_buttons(self, enable=True):
for button in self.buttons:
button.Enable(enable)
def flush(self):
pass
get_display = MeasureFrame.__dict__["get_display"]
def has_worker_subprocess(self):
return bool(
getattr(self, "worker", None) and getattr(self.worker, "subprocess", None)
)
def hide_cursor(self):
cursor_id = wx.CURSOR_BLANK
cursor = wx.StockCursor(cursor_id)
self.SetCursor(cursor)
for panel in self.panels:
panel.SetCursor(cursor)
for label in list(self.labels.values()):
label.SetCursor(cursor)
for button in self.buttons:
button.SetCursor(cursor)
def isatty(self):
return True
def key_handler(self, event):
keycode = None
if event.GetEventType() in (
wx.EVT_CHAR.typeId,
wx.EVT_CHAR_HOOK.typeId,
wx.EVT_KEY_DOWN.typeId,
):
keycode = event.GetKeyCode()
elif event.GetEventType() == wx.EVT_MENU.typeId:
keycode = self.id_to_keycode.get(event.GetId())
if keycode == wx.WXK_TAB:
self.global_navigate() or event.Skip()
elif keycode >= 0:
if self.has_worker_subprocess() and keycode < 256:
if keycode == wx.WXK_ESCAPE or chr(keycode) == "Q":
# ESC or Q
self.worker.abort_subprocess()
elif (
self.index > -1
and not self.is_measuring
and (
not isinstance(self.FindFocus(), wx.Control)
or keycode != wx.WXK_SPACE
)
):
# Any other key
self.measure(
CustomEvent(wx.EVT_BUTTON.typeId, self.buttons[self.index])
)
else:
event.Skip()
else:
event.Skip()
else:
event.Skip()
def measure(self, event=None):
if event:
self.index = event.GetEventObject().index
print("%s: Uniformity grid index %i" % (appname, self.index))
self.is_measuring = True
self.results[self.index] = []
self.labels[self.index].SetLabel("")
self.hide_cursor()
self.disable_buttons()
self.buttons[self.index].Hide()
self.panels[self.index].SetBackgroundColour(
self.colors[len(self.results[self.index])]
)
self.panels[self.index].Refresh()
self.panels[self.index].Update()
print(
"%s: About to measure uniformity grid index %i @%i%%"
% (
appname,
self.index,
self.colors[len(self.results[self.index])].red / 2.55,
)
)
# Use a delay to allow for TFT lag
wx.CallLater(200, self.safe_send, " ")
def parse_txt(self, txt):
if not txt:
return
self.logger.info("%r" % txt)
if "Setting up the instrument" in txt:
self.Pulse(lang.getstr("instrument.initializing"))
if "Spot read failed" in txt:
self.last_error = txt
if "Result is XYZ:" in txt:
# Result is XYZ: d.dddddd d.dddddd d.dddddd, D50 Lab: d.dddddd d.dddddd d.dddddd
# CCT = ddddK (Delta E d.dddddd)
# Closest Planckian temperature = ddddK (Delta E d.dddddd)
# Closest Daylight temperature = ddddK (Delta E d.dddddd)
XYZ = re.search(r"XYZ:\s+(\d+\.\d+)\s+(\d+\.\d+)\s+(\d+\.\d+)", txt)
self.results[self.index].append(
{"XYZ": [float(value) for value in XYZ.groups()]}
)
self.last_error = None
loci = {"t": "Daylight", "T": "Planckian"}
for locus in list(loci.values()):
if locus in txt:
CT = re.search(
r"Closest\s+%s\s+temperature\s+=\s+(\d+)K" % locus, txt, re.I
)
self.results[self.index][-1]["C%sT" % locus[0]] = int(CT.groups()[0])
if "key to take a reading" in txt and not self.last_error:
print("%s: Got 'key to take a reading'" % appname)
if not self.is_measuring:
self.enable_buttons()
return
if len(self.results[self.index]) < len(self.colors):
# Take readings at 5 different brightness levels per swatch
print("%s: About to take next reading" % appname)
self.measure()
else:
self.is_measuring = False
self.show_cursor()
self.enable_buttons()
self.buttons[self.index].Show()
self.buttons[self.index].SetFocus()
self.buttons[self.index].SetBitmap(
getbitmap("theme/icons/16x16/checkmark")
)
self.panels[self.index].SetBackgroundColour(BGCOLOUR)
self.panels[self.index].Refresh()
self.panels[self.index].Update()
if len(self.results) == self.rows * self.cols:
# All swatches have been measured, show results
# Let the user choose a location for the results html
display_no, geometry, client_area = self.get_display()
# Translate from wx display index to Argyll display index
geometry = "%i, %i, %ix%i" % tuple(geometry)
for i, display in enumerate(getcfg("displays")):
if display.find("@ " + geometry) > -1:
print("Found display %s at index %i" % (display, i))
break
display = display.replace(" [PRIMARY]", "")
defaultFile = "Uniformity Check %s — %s — %s" % (
appversion,
re.sub(r"[\\/:*?\"<>|]+", "_", display),
strftime("%Y-%m-%d %H-%M.html"),
)
defaultDir = get_verified_path(
None, os.path.join(getcfg("profile.save_path"), defaultFile)
)[0]
dlg = wx.FileDialog(
self,
lang.getstr("save_as"),
defaultDir,
defaultFile,
wildcard=lang.getstr("filetype.html") + "|*.html;*.htm",
style=wx.SAVE | wx.FD_OVERWRITE_PROMPT,
)
dlg.Center(wx.BOTH)
result = dlg.ShowModal()
if result == wx.ID_OK:
path = dlg.GetPath()
if not waccess(path, os.W_OK):
from DisplayCAL.worker import show_result_dialog
show_result_dialog(
Error(lang.getstr("error.access_denied.write", path)),
self,
)
return
save_path = os.path.splitext(path)[0] + ".html"
setcfg("last_filedialog_path", save_path)
dlg.Destroy()
if result != wx.ID_OK:
return
locus = loci.get(getcfg("whitepoint.colortemp.locus"))
try:
report.create(
save_path,
{
"${REPORT_VERSION}": appversion,
"${DISPLAY}": display,
"${DATETIME}": strftime("%Y-%m-%d %H:%M:%S"),
"${ROWS}": str(self.rows),
"${COLS}": str(self.cols),
"${RESULTS}": str(self.results),
"${LOCUS}": locus,
},
getcfg("report.pack_js"),
"uniformity",
)
except (IOError, OSError) as exception:
from DisplayCAL.worker import show_result_dialog
show_result_dialog(exception, self)
else:
launch_file(save_path)
if getcfg("uniformity.measure.continuous"):
self.measure(event=Event(self.buttons[self.index]))
def reset(self):
self._setup()
for panel in self.panels:
panel.SetBackgroundColour(BGCOLOUR)
for button in self.buttons:
button.SetBitmap(getbitmap("theme/icons/10x10/record"))
button.Show()
for index in self.labels:
self.labels[index].SetLabel("")
self.labels[index].GetContainingSizer().Layout()
self.show_cursor()
def _setup(self):
self.logger.info("-" * 80)
self.index = 0
self.is_measuring = False
self.keepGoing = True
self.last_error = None
self.results = {}
self.display_rects = get_display_rects()
def safe_send(self, bytes):
if self.has_worker_subprocess() and not self.worker.subprocess_abort:
if not self.worker.instrument_on_screen:
if not getattr(self, "wait_for_instrument_on_screen", False):
self.wait_for_instrument_on_screen = True
print("%s: Waiting for instrument to be placed on screen" % appname)
wx.CallLater(200, self.safe_send, bytes)
else:
self.wait_for_instrument_on_screen = False
self.worker.safe_send(bytes)
def show_cursor(self):
cursor = wx.StockCursor(wx.CURSOR_ARROW)
self.SetCursor(cursor)
for panel in self.panels:
panel.SetCursor(cursor)
for label in list(self.labels.values()):
label.SetCursor(cursor)
for button in self.buttons:
button.SetCursor(cursor)
def start_timer(self, ms=50):
self.timer.Start(ms)
def stop_timer(self):
self.timer.Stop()
def write(self, txt):
wx.CallAfter(self.parse_txt, txt)
class Event:
def __init__(self, evtobj):
self.evtobj = evtobj
def GetEventObject(self):
return self.evtobj
if __name__ == "__main__":
from _thread import start_new_thread
from time import sleep
class Subprocess:
def send(self, bytes_):
start_new_thread(test, (bytes_,))
class Worker:
def __init__(self):
self.subprocess = Subprocess()
self.subprocess_abort = False
def abort_subprocess(self):
self.subprocess.send("Q")
def safe_send(self, bytes_):
self.subprocess.send(bytes_)
return True
config.initcfg()
lang.init()
lang.update_defaults()
app = BaseApp(0)
app.TopWindow = DisplayUniformityFrame(start_timer=False, rows=3, cols=3)
app.TopWindow.worker = Worker()
app.TopWindow.Show()
i = 0
def test(bytes_=None):
global i
menu = r"""Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:"""
if not bytes_:
txt = menu
elif bytes_ == " ":
txt = [
[
"""
Result is XYZ: 115.629826 123.903717 122.761510, D50 Lab: 108.590836 -5.813746 -13.529075
CCT = 6104K (Delta E 7.848119)
Closest Planckian temperature = 5835K (Delta E 6.927113)
Closest Daylight temperature = 5963K (Delta E 3.547392)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 65.336831 69.578641 68.180005, D50 Lab: 86.789788 -3.888434 -10.469442
CCT = 5983K (Delta E 6.816507)
Closest Planckian temperature = 5757K (Delta E 5.996638)
Closest Daylight temperature = 5883K (Delta E 2.598118)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 26.944662 28.614568 28.107897, D50 Lab: 60.439948 -2.589848 -7.899247
CCT = 5969K (Delta E 6.279024)
Closest Planckian temperature = 5760K (Delta E 5.519000)
Closest Daylight temperature = 5887K (Delta E 2.119333)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 6.153402 6.500147 6.625585, D50 Lab: 30.640770 -1.226804 -5.876967
CCT = 6123K (Delta E 4.946609)
Closest Planckian temperature = 5943K (Delta E 4.353019)
Closest Daylight temperature = 6082K (Delta E 0.985734)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.640770 -1.226804 -5.876967
CCT = 6123K (Delta E 4.946609)
Closest Planckian temperature = 5943K (Delta E 4.353019)
Closest Daylight temperature = 6082K (Delta E 0.985734)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
[
"""
Result is XYZ: 116.565941 124.165894 121.365684, D50 Lab: 108.678651 -4.762572 -12.508939
CCT = 5972K (Delta E 6.890329)
Closest Planckian temperature = 5745K (Delta E 6.060831)
Closest Daylight temperature = 5871K (Delta E 2.660205)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 64.511790 68.522425 66.980369, D50 Lab: 86.267011 -3.491468 -10.263432
CCT = 5945K (Delta E 6.363056)
Closest Planckian temperature = 5735K (Delta E 5.590753)
Closest Daylight temperature = 5862K (Delta E 2.186503)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 26.905684 28.417087 27.988741, D50 Lab: 60.263695 -1.987837 -8.005457
CCT = 5930K (Delta E 5.234243)
Closest Planckian temperature = 5755K (Delta E 4.591707)
Closest Daylight temperature = 5884K (Delta E 1.187672)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 6.144071 6.471379 6.584408, D50 Lab: 30.571861 -1.030833 -5.816641
CCT = 6083K (Delta E 4.418192)
Closest Planckian temperature = 5923K (Delta E 3.883022)
Closest Daylight temperature = 6062K (Delta E 0.510176)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.571861 -1.030833 -5.816641
CCT = 6083K (Delta E 4.418192)
Closest Planckian temperature = 5923K (Delta E 3.883022)
Closest Daylight temperature = 6062K (Delta E 0.510176)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
[
"""
Result is XYZ: 116.611176 123.928350 121.363808, D50 Lab: 108.599092 -4.350754 -12.644938
CCT = 5960K (Delta E 6.444925)
Closest Planckian temperature = 5747K (Delta E 5.664879)
Closest Daylight temperature = 5873K (Delta E 2.263144)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 64.672460 68.441938 67.178377, D50 Lab: 86.226954 -2.956057 -10.516177
CCT = 5931K (Delta E 5.640857)
Closest Planckian temperature = 5744K (Delta E 4.950818)
Closest Daylight temperature = 5872K (Delta E 1.545901)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 26.708397 28.224354 27.854805, D50 Lab: 60.090889 -2.043543 -8.080532
CCT = 5946K (Delta E 5.317449)
Closest Planckian temperature = 5768K (Delta E 4.666630)
Closest Daylight temperature = 5897K (Delta E 1.265350)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 6.154005 6.469558 6.599849, D50 Lab: 30.567493 -0.904424 -5.891430
CCT = 6079K (Delta E 4.041262)
Closest Planckian temperature = 5932K (Delta E 3.549922)
Closest Daylight temperature = 6072K (Delta E 0.177697)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.567493 -0.904424 -5.891430
CCT = 6079K (Delta E 4.041262)
Closest Planckian temperature = 5932K (Delta E 3.549922)
Closest Daylight temperature = 6072K (Delta E 0.177697)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
[
"""
Result is XYZ: 120.030166 127.667344 125.560879, D50 Lab: 109.839774 -4.542272 -13.098348
CCT = 5991K (Delta E 6.554213)
Closest Planckian temperature = 5772K (Delta E 5.765044)
Closest Daylight temperature = 5899K (Delta E 2.368586)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 66.590402 70.542611 69.377397, D50 Lab: 87.262309 -3.134252 -10.747149
CCT = 5951K (Delta E 5.807812)
Closest Planckian temperature = 5758K (Delta E 5.100360)
Closest Daylight temperature = 5886K (Delta E 1.698719)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 27.489125 29.158690 28.738045, D50 Lab: 60.921426 -2.478038 -8.105322
CCT = 5976K (Delta E 6.028851)
Closest Planckian temperature = 5773K (Delta E 5.298263)
Closest Daylight temperature = 5902K (Delta E 1.900430)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 6.326874 6.649709 6.776715, D50 Lab: 30.995780 -0.896754 -5.916062
CCT = 6071K (Delta E 4.005433)
Closest Planckian temperature = 5926K (Delta E 3.517820)
Closest Daylight temperature = 6065K (Delta E 0.144142)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.995780 -0.896754 -5.916062
CCT = 6071K (Delta E 4.005433)
Closest Planckian temperature = 5926K (Delta E 3.517820)
Closest Daylight temperature = 6065K (Delta E 0.144142)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
[
"""
Result is XYZ: 121.643262 130.105649 128.560173, D50 Lab: 110.635861 -5.574898 -13.543244
CCT = 6071K (Delta E 7.533820)
Closest Planckian temperature = 5815K (Delta E 6.643605)
Closest Daylight temperature = 5943K (Delta E 3.258868)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 67.775736 72.266319 71.178047, D50 Lab: 88.096621 -4.123469 -10.928024
CCT = 6023K (Delta E 6.995424)
Closest Planckian temperature = 5788K (Delta E 6.159783)
Closest Daylight temperature = 5915K (Delta E 2.767919)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 28.131948 29.978900 29.595129, D50 Lab: 61.636012 -3.012753 -8.258625
CCT = 6030K (Delta E 6.867980)
Closest Planckian temperature = 5798K (Delta E 6.047536)
Closest Daylight temperature = 5926K (Delta E 2.657241)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 6.473470 6.765282 6.888164, D50 Lab: 31.266484 -0.517860 -5.923364
CCT = 6007K (Delta E 2.947859)
Closest Planckian temperature = 5902K (Delta E 2.582843)
Closest Daylight temperature = 6042K (Delta E 0.798814)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.266484 -0.517860 -5.923364
CCT = 6007K (Delta E 2.947859)
Closest Planckian temperature = 5902K (Delta E 2.582843)
Closest Daylight temperature = 6042K (Delta E 0.798814)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
[
"""
Result is XYZ: 116.801943 124.624261 123.359911, D50 Lab: 108.831883 -5.063829 -13.483891
CCT = 6057K (Delta E 7.069302)
Closest Planckian temperature = 5816K (Delta E 6.229078)
Closest Daylight temperature = 5944K (Delta E 2.843045)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 64.869350 68.842421 67.977252, D50 Lab: 86.425958 -3.370123 -10.910497
CCT = 5991K (Delta E 6.099488)
Closest Planckian temperature = 5785K (Delta E 5.362276)
Closest Daylight temperature = 5914K (Delta E 1.966958)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 26.750888 28.302175 27.882982, D50 Lab: 60.160759 -2.171950 -8.007010
CCT = 5948K (Delta E 5.551435)
Closest Planckian temperature = 5762K (Delta E 4.873477)
Closest Daylight temperature = 5891K (Delta E 1.471926)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 6.255018 6.563924 6.746680, D50 Lab: 30.792814 -0.788285 -6.137368
CCT = 6105K (Delta E 3.641727)
Closest Planckian temperature = 5970K (Delta E 3.198805)
Closest Daylight temperature = 6113K (Delta E 0.167052)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.792814 -0.788285 -6.137368
CCT = 6105K (Delta E 3.641727)
Closest Planckian temperature = 5970K (Delta E 3.198805)
Closest Daylight temperature = 6113K (Delta E 0.167052)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
[
"""
Result is XYZ: 115.081771 122.300809 119.963479, D50 Lab: 108.051237 -4.328489 -12.711256
CCT = 5969K (Delta E 6.425079)
Closest Planckian temperature = 5755K (Delta E 5.648226)
Closest Daylight temperature = 5882K (Delta E 2.248055)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 62.334621 66.118418 64.979303, D50 Lab: 85.056784 -3.250929 -10.473103
CCT = 5960K (Delta E 6.051574)
Closest Planckian temperature = 5758K (Delta E 5.316783)
Closest Daylight temperature = 5886K (Delta E 1.916058)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 25.849804 27.374348 27.163845, D50 Lab: 59.319238 -2.248166 -8.249728
CCT = 5996K (Delta E 5.653680)
Closest Planckian temperature = 5804K (Delta E 4.968356)
Closest Daylight temperature = 5934K (Delta E 1.575347)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 5.898029 6.233309 6.427531, D50 Lab: 29.993614 -1.240610 -6.124217
CCT = 6197K (Delta E 4.937751)
Closest Planckian temperature = 6011K (Delta E 4.350182)
Closest Daylight temperature = 6153K (Delta E 0.996499)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.993614 -1.240610 -6.124217
CCT = 6197K (Delta E 4.937751)
Closest Planckian temperature = 6011K (Delta E 4.350182)
Closest Daylight temperature = 6153K (Delta E 0.996499)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
[
"""
Result is XYZ: 114.661874 122.077962 119.963424, D50 Lab: 107.975846 -4.649371 -12.841206
CCT = 5996K (Delta E 6.745175)
Closest Planckian temperature = 5771K (Delta E 5.934859)
Closest Daylight temperature = 5898K (Delta E 2.538832)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 61.818899 65.859246 64.979340, D50 Lab: 84.924570 -3.876653 -10.701093
CCT = 6024K (Delta E 6.822442)
Closest Planckian temperature = 5794K (Delta E 6.006530)
Closest Daylight temperature = 5922K (Delta E 2.615316)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 25.795743 27.295989 27.081138, D50 Lab: 59.247303 -2.163010 -8.233441
CCT = 5988K (Delta E 5.511791)
Closest Planckian temperature = 5800K (Delta E 4.842103)
Closest Daylight temperature = 5931K (Delta E 1.447924)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 5.925222 6.263326 6.427544, D50 Lab: 30.067324 -1.256015 -5.997186
CCT = 6170K (Delta E 5.014894)
Closest Planckian temperature = 5984K (Delta E 4.416741)
Closest Daylight temperature = 6124K (Delta E 1.057856)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.067324 -1.256015 -5.997186
CCT = 6170K (Delta E 5.014894)
Closest Planckian temperature = 5984K (Delta E 4.416741)
Closest Daylight temperature = 6124K (Delta E 1.057856)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
[
"""
Result is XYZ: 116.839314 123.894968 122.159446, D50 Lab: 108.587904 -3.955352 -13.160232
CCT = 5975K (Delta E 5.963774)
Closest Planckian temperature = 5774K (Delta E 5.240593)
Closest Daylight temperature = 5903K (Delta E 1.842768)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 63.469751 67.164836 66.177725, D50 Lab: 85.587118 -2.928291 -10.687360
CCT = 5951K (Delta E 5.590334)
Closest Planckian temperature = 5764K (Delta E 4.908104)
Closest Daylight temperature = 5892K (Delta E 1.506948)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 26.106117 27.645671 27.403890, D50 Lab: 59.567264 -2.255152 -8.227727
CCT = 5991K (Delta E 5.663331)
Closest Planckian temperature = 5798K (Delta E 4.976351)
Closest Daylight temperature = 5928K (Delta E 1.582241)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 6.001154 6.326623 6.508185, D50 Lab: 30.221991 -1.083417 -6.086282
CCT = 6157K (Delta E 4.496558)
Closest Planckian temperature = 5990K (Delta E 3.957006)
Closest Daylight temperature = 6131K (Delta E 0.597640)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
"""
Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.221991 -1.083417 -6.086282
CCT = 6157K (Delta E 4.496558)
Closest Planckian temperature = 5990K (Delta E 3.957006)
Closest Daylight temperature = 6131K (Delta E 0.597640)
Place instrument on spot to be measured,
and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
[a-z] to read and make FWA compensated reading from keyed reference
'r' to set reference, 's' to save spectrum,
'h' to toggle high res., 'k' to do a calibration
Hit ESC or Q to exit, any other key to take a reading:""",
],
][app.TopWindow.index][i]
if i < 3:
i += 1
else:
i -= 3
elif bytes_ in ("Q", "q"):
wx.CallAfter(app.TopWindow.Close)
return
else:
return
for line in txt.split("\n"):
sleep(0.03125)
wx.CallAfter(app.TopWindow.write, line)
print(line)
start_new_thread(test, tuple())
app.MainLoop()
|