Debian Codegraph @

tests/test_wx_display_uniformity_frame.py

raw
1 import pytest
2
3
4
5 def setup_test():
6 """Setup test environment."""
7 # TODO: Move the tests to the tests.
8 from _thread import start_new_thread
9 from time import sleep
10
11 class Subprocess:
12 """Mock subprocess class to simulate subprocess behavior."""
13
14 def send(self, bytes_):
15 start_new_thread(test, (bytes_,))
16
17 class Worker:
18 """Mock worker class to simulate subprocess behavior."""
19
20 def __init__(self):
21 self.subprocess = Subprocess()
22 self.subprocess_abort = False
23
24 def abort_subprocess(self):
25 self.subprocess.send("Q")
26
27 def safe_send(self, bytes_):
28 self.subprocess.send(bytes_)
29 return True
30
31 config.initcfg()
32 lang.init()
33 lang.update_defaults()
34 app = BaseApp(0)
35 app.TopWindow = DisplayUniformityFrame(start_timer=False, rows=3, cols=3)
36 app.TopWindow.worker = Worker()
37 app.TopWindow.Show()
38 i = 0
39
40
41
42 @pytest.mark.skip(reason="TODO: This test is moved from the module, properly implement it.")
43 def test(bytes_=None):
44 global i
45 menu = r"""Place instrument on spot to be measured,
46 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
47 [a-z] to read and make FWA compensated reading from keyed reference
48 'r' to set reference, 's' to save spectrum,
49 'h' to toggle high res., 'k' to do a calibration
50 Hit ESC or Q to exit, any other key to take a reading:"""
51 if not bytes_:
52 txt = menu
53 elif bytes_ == " ":
54 txt = [
55 [
56 """
57 Result is XYZ: 115.629826 123.903717 122.761510, D50 Lab: 108.590836 -5.813746 -13.529075
58 CCT = 6104K (Delta E 7.848119)
59 Closest Planckian temperature = 5835K (Delta E 6.927113)
60 Closest Daylight temperature = 5963K (Delta E 3.547392)
61
62 Place instrument on spot to be measured,
63 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
64 [a-z] to read and make FWA compensated reading from keyed reference
65 'r' to set reference, 's' to save spectrum,
66 'h' to toggle high res., 'k' to do a calibration
67 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
68 """
69 Result is XYZ: 65.336831 69.578641 68.180005, D50 Lab: 86.789788 -3.888434 -10.469442
70 CCT = 5983K (Delta E 6.816507)
71 Closest Planckian temperature = 5757K (Delta E 5.996638)
72 Closest Daylight temperature = 5883K (Delta E 2.598118)
73
74 Place instrument on spot to be measured,
75 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
76 [a-z] to read and make FWA compensated reading from keyed reference
77 'r' to set reference, 's' to save spectrum,
78 'h' to toggle high res., 'k' to do a calibration
79 Hit ESC or Q to exit, any other key to take a reading:""",
80 """
81 Result is XYZ: 26.944662 28.614568 28.107897, D50 Lab: 60.439948 -2.589848 -7.899247
82 CCT = 5969K (Delta E 6.279024)
83 Closest Planckian temperature = 5760K (Delta E 5.519000)
84 Closest Daylight temperature = 5887K (Delta E 2.119333)
85
86 Place instrument on spot to be measured,
87 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
88 [a-z] to read and make FWA compensated reading from keyed reference
89 'r' to set reference, 's' to save spectrum,
90 'h' to toggle high res., 'k' to do a calibration
91 Hit ESC or Q to exit, any other key to take a reading:""",
92 """
93 Result is XYZ: 6.153402 6.500147 6.625585, D50 Lab: 30.640770 -1.226804 -5.876967
94 CCT = 6123K (Delta E 4.946609)
95 Closest Planckian temperature = 5943K (Delta E 4.353019)
96 Closest Daylight temperature = 6082K (Delta E 0.985734)
97
98 Place instrument on spot to be measured,
99 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
100 [a-z] to read and make FWA compensated reading from keyed reference
101 'r' to set reference, 's' to save spectrum,
102 'h' to toggle high res., 'k' to do a calibration
103 Hit ESC or Q to exit, any other key to take a reading:""",
104 """
105 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.640770 -1.226804 -5.876967
106 CCT = 6123K (Delta E 4.946609)
107 Closest Planckian temperature = 5943K (Delta E 4.353019)
108 Closest Daylight temperature = 6082K (Delta E 0.985734)
109
110 Place instrument on spot to be measured,
111 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
112 [a-z] to read and make FWA compensated reading from keyed reference
113 'r' to set reference, 's' to save spectrum,
114 'h' to toggle high res., 'k' to do a calibration
115 Hit ESC or Q to exit, any other key to take a reading:""",
116 ],
117 [
118 """
119 Result is XYZ: 116.565941 124.165894 121.365684, D50 Lab: 108.678651 -4.762572 -12.508939
120 CCT = 5972K (Delta E 6.890329)
121 Closest Planckian temperature = 5745K (Delta E 6.060831)
122 Closest Daylight temperature = 5871K (Delta E 2.660205)
123
124 Place instrument on spot to be measured,
125 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
126 [a-z] to read and make FWA compensated reading from keyed reference
127 'r' to set reference, 's' to save spectrum,
128 'h' to toggle high res., 'k' to do a calibration
129 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
130 """
131 Result is XYZ: 64.511790 68.522425 66.980369, D50 Lab: 86.267011 -3.491468 -10.263432
132 CCT = 5945K (Delta E 6.363056)
133 Closest Planckian temperature = 5735K (Delta E 5.590753)
134 Closest Daylight temperature = 5862K (Delta E 2.186503)
135
136 Place instrument on spot to be measured,
137 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
138 [a-z] to read and make FWA compensated reading from keyed reference
139 'r' to set reference, 's' to save spectrum,
140 'h' to toggle high res., 'k' to do a calibration
141 Hit ESC or Q to exit, any other key to take a reading:""",
142 """
143 Result is XYZ: 26.905684 28.417087 27.988741, D50 Lab: 60.263695 -1.987837 -8.005457
144 CCT = 5930K (Delta E 5.234243)
145 Closest Planckian temperature = 5755K (Delta E 4.591707)
146 Closest Daylight temperature = 5884K (Delta E 1.187672)
147
148 Place instrument on spot to be measured,
149 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
150 [a-z] to read and make FWA compensated reading from keyed reference
151 'r' to set reference, 's' to save spectrum,
152 'h' to toggle high res., 'k' to do a calibration
153 Hit ESC or Q to exit, any other key to take a reading:""",
154 """
155 Result is XYZ: 6.144071 6.471379 6.584408, D50 Lab: 30.571861 -1.030833 -5.816641
156 CCT = 6083K (Delta E 4.418192)
157 Closest Planckian temperature = 5923K (Delta E 3.883022)
158 Closest Daylight temperature = 6062K (Delta E 0.510176)
159
160 Place instrument on spot to be measured,
161 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
162 [a-z] to read and make FWA compensated reading from keyed reference
163 'r' to set reference, 's' to save spectrum,
164 'h' to toggle high res., 'k' to do a calibration
165 Hit ESC or Q to exit, any other key to take a reading:""",
166 """
167 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.571861 -1.030833 -5.816641
168 CCT = 6083K (Delta E 4.418192)
169 Closest Planckian temperature = 5923K (Delta E 3.883022)
170 Closest Daylight temperature = 6062K (Delta E 0.510176)
171
172 Place instrument on spot to be measured,
173 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
174 [a-z] to read and make FWA compensated reading from keyed reference
175 'r' to set reference, 's' to save spectrum,
176 'h' to toggle high res., 'k' to do a calibration
177 Hit ESC or Q to exit, any other key to take a reading:""",
178 ],
179 [
180 """
181 Result is XYZ: 116.611176 123.928350 121.363808, D50 Lab: 108.599092 -4.350754 -12.644938
182 CCT = 5960K (Delta E 6.444925)
183 Closest Planckian temperature = 5747K (Delta E 5.664879)
184 Closest Daylight temperature = 5873K (Delta E 2.263144)
185
186 Place instrument on spot to be measured,
187 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
188 [a-z] to read and make FWA compensated reading from keyed reference
189 'r' to set reference, 's' to save spectrum,
190 'h' to toggle high res., 'k' to do a calibration
191 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
192 """
193 Result is XYZ: 64.672460 68.441938 67.178377, D50 Lab: 86.226954 -2.956057 -10.516177
194 CCT = 5931K (Delta E 5.640857)
195 Closest Planckian temperature = 5744K (Delta E 4.950818)
196 Closest Daylight temperature = 5872K (Delta E 1.545901)
197
198 Place instrument on spot to be measured,
199 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
200 [a-z] to read and make FWA compensated reading from keyed reference
201 'r' to set reference, 's' to save spectrum,
202 'h' to toggle high res., 'k' to do a calibration
203 Hit ESC or Q to exit, any other key to take a reading:""",
204 """
205 Result is XYZ: 26.708397 28.224354 27.854805, D50 Lab: 60.090889 -2.043543 -8.080532
206 CCT = 5946K (Delta E 5.317449)
207 Closest Planckian temperature = 5768K (Delta E 4.666630)
208 Closest Daylight temperature = 5897K (Delta E 1.265350)
209
210 Place instrument on spot to be measured,
211 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
212 [a-z] to read and make FWA compensated reading from keyed reference
213 'r' to set reference, 's' to save spectrum,
214 'h' to toggle high res., 'k' to do a calibration
215 Hit ESC or Q to exit, any other key to take a reading:""",
216 """
217 Result is XYZ: 6.154005 6.469558 6.599849, D50 Lab: 30.567493 -0.904424 -5.891430
218 CCT = 6079K (Delta E 4.041262)
219 Closest Planckian temperature = 5932K (Delta E 3.549922)
220 Closest Daylight temperature = 6072K (Delta E 0.177697)
221
222 Place instrument on spot to be measured,
223 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
224 [a-z] to read and make FWA compensated reading from keyed reference
225 'r' to set reference, 's' to save spectrum,
226 'h' to toggle high res., 'k' to do a calibration
227 Hit ESC or Q to exit, any other key to take a reading:""",
228 """
229 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.567493 -0.904424 -5.891430
230 CCT = 6079K (Delta E 4.041262)
231 Closest Planckian temperature = 5932K (Delta E 3.549922)
232 Closest Daylight temperature = 6072K (Delta E 0.177697)
233
234 Place instrument on spot to be measured,
235 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
236 [a-z] to read and make FWA compensated reading from keyed reference
237 'r' to set reference, 's' to save spectrum,
238 'h' to toggle high res., 'k' to do a calibration
239 Hit ESC or Q to exit, any other key to take a reading:""",
240 ],
241 [
242 """
243 Result is XYZ: 120.030166 127.667344 125.560879, D50 Lab: 109.839774 -4.542272 -13.098348
244 CCT = 5991K (Delta E 6.554213)
245 Closest Planckian temperature = 5772K (Delta E 5.765044)
246 Closest Daylight temperature = 5899K (Delta E 2.368586)
247
248 Place instrument on spot to be measured,
249 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
250 [a-z] to read and make FWA compensated reading from keyed reference
251 'r' to set reference, 's' to save spectrum,
252 'h' to toggle high res., 'k' to do a calibration
253 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
254 """
255 Result is XYZ: 66.590402 70.542611 69.377397, D50 Lab: 87.262309 -3.134252 -10.747149
256 CCT = 5951K (Delta E 5.807812)
257 Closest Planckian temperature = 5758K (Delta E 5.100360)
258 Closest Daylight temperature = 5886K (Delta E 1.698719)
259
260 Place instrument on spot to be measured,
261 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
262 [a-z] to read and make FWA compensated reading from keyed reference
263 'r' to set reference, 's' to save spectrum,
264 'h' to toggle high res., 'k' to do a calibration
265 Hit ESC or Q to exit, any other key to take a reading:""",
266 """
267 Result is XYZ: 27.489125 29.158690 28.738045, D50 Lab: 60.921426 -2.478038 -8.105322
268 CCT = 5976K (Delta E 6.028851)
269 Closest Planckian temperature = 5773K (Delta E 5.298263)
270 Closest Daylight temperature = 5902K (Delta E 1.900430)
271
272 Place instrument on spot to be measured,
273 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
274 [a-z] to read and make FWA compensated reading from keyed reference
275 'r' to set reference, 's' to save spectrum,
276 'h' to toggle high res., 'k' to do a calibration
277 Hit ESC or Q to exit, any other key to take a reading:""",
278 """
279 Result is XYZ: 6.326874 6.649709 6.776715, D50 Lab: 30.995780 -0.896754 -5.916062
280 CCT = 6071K (Delta E 4.005433)
281 Closest Planckian temperature = 5926K (Delta E 3.517820)
282 Closest Daylight temperature = 6065K (Delta E 0.144142)
283
284 Place instrument on spot to be measured,
285 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
286 [a-z] to read and make FWA compensated reading from keyed reference
287 'r' to set reference, 's' to save spectrum,
288 'h' to toggle high res., 'k' to do a calibration
289 Hit ESC or Q to exit, any other key to take a reading:""",
290 """
291 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.995780 -0.896754 -5.916062
292 CCT = 6071K (Delta E 4.005433)
293 Closest Planckian temperature = 5926K (Delta E 3.517820)
294 Closest Daylight temperature = 6065K (Delta E 0.144142)
295
296 Place instrument on spot to be measured,
297 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
298 [a-z] to read and make FWA compensated reading from keyed reference
299 'r' to set reference, 's' to save spectrum,
300 'h' to toggle high res., 'k' to do a calibration
301 Hit ESC or Q to exit, any other key to take a reading:""",
302 ],
303 [
304 """
305 Result is XYZ: 121.643262 130.105649 128.560173, D50 Lab: 110.635861 -5.574898 -13.543244
306 CCT = 6071K (Delta E 7.533820)
307 Closest Planckian temperature = 5815K (Delta E 6.643605)
308 Closest Daylight temperature = 5943K (Delta E 3.258868)
309
310 Place instrument on spot to be measured,
311 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
312 [a-z] to read and make FWA compensated reading from keyed reference
313 'r' to set reference, 's' to save spectrum,
314 'h' to toggle high res., 'k' to do a calibration
315 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
316 """
317 Result is XYZ: 67.775736 72.266319 71.178047, D50 Lab: 88.096621 -4.123469 -10.928024
318 CCT = 6023K (Delta E 6.995424)
319 Closest Planckian temperature = 5788K (Delta E 6.159783)
320 Closest Daylight temperature = 5915K (Delta E 2.767919)
321
322 Place instrument on spot to be measured,
323 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
324 [a-z] to read and make FWA compensated reading from keyed reference
325 'r' to set reference, 's' to save spectrum,
326 'h' to toggle high res., 'k' to do a calibration
327 Hit ESC or Q to exit, any other key to take a reading:""",
328 """
329 Result is XYZ: 28.131948 29.978900 29.595129, D50 Lab: 61.636012 -3.012753 -8.258625
330 CCT = 6030K (Delta E 6.867980)
331 Closest Planckian temperature = 5798K (Delta E 6.047536)
332 Closest Daylight temperature = 5926K (Delta E 2.657241)
333
334 Place instrument on spot to be measured,
335 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
336 [a-z] to read and make FWA compensated reading from keyed reference
337 'r' to set reference, 's' to save spectrum,
338 'h' to toggle high res., 'k' to do a calibration
339 Hit ESC or Q to exit, any other key to take a reading:""",
340 """
341 Result is XYZ: 6.473470 6.765282 6.888164, D50 Lab: 31.266484 -0.517860 -5.923364
342 CCT = 6007K (Delta E 2.947859)
343 Closest Planckian temperature = 5902K (Delta E 2.582843)
344 Closest Daylight temperature = 6042K (Delta E 0.798814)
345
346 Place instrument on spot to be measured,
347 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
348 [a-z] to read and make FWA compensated reading from keyed reference
349 'r' to set reference, 's' to save spectrum,
350 'h' to toggle high res., 'k' to do a calibration
351 Hit ESC or Q to exit, any other key to take a reading:""",
352 """
353 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.266484 -0.517860 -5.923364
354 CCT = 6007K (Delta E 2.947859)
355 Closest Planckian temperature = 5902K (Delta E 2.582843)
356 Closest Daylight temperature = 6042K (Delta E 0.798814)
357
358 Place instrument on spot to be measured,
359 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
360 [a-z] to read and make FWA compensated reading from keyed reference
361 'r' to set reference, 's' to save spectrum,
362 'h' to toggle high res., 'k' to do a calibration
363 Hit ESC or Q to exit, any other key to take a reading:""",
364 ],
365 [
366 """
367 Result is XYZ: 116.801943 124.624261 123.359911, D50 Lab: 108.831883 -5.063829 -13.483891
368 CCT = 6057K (Delta E 7.069302)
369 Closest Planckian temperature = 5816K (Delta E 6.229078)
370 Closest Daylight temperature = 5944K (Delta E 2.843045)
371
372 Place instrument on spot to be measured,
373 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
374 [a-z] to read and make FWA compensated reading from keyed reference
375 'r' to set reference, 's' to save spectrum,
376 'h' to toggle high res., 'k' to do a calibration
377 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
378 """
379 Result is XYZ: 64.869350 68.842421 67.977252, D50 Lab: 86.425958 -3.370123 -10.910497
380 CCT = 5991K (Delta E 6.099488)
381 Closest Planckian temperature = 5785K (Delta E 5.362276)
382 Closest Daylight temperature = 5914K (Delta E 1.966958)
383
384 Place instrument on spot to be measured,
385 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
386 [a-z] to read and make FWA compensated reading from keyed reference
387 'r' to set reference, 's' to save spectrum,
388 'h' to toggle high res., 'k' to do a calibration
389 Hit ESC or Q to exit, any other key to take a reading:""",
390 """
391 Result is XYZ: 26.750888 28.302175 27.882982, D50 Lab: 60.160759 -2.171950 -8.007010
392 CCT = 5948K (Delta E 5.551435)
393 Closest Planckian temperature = 5762K (Delta E 4.873477)
394 Closest Daylight temperature = 5891K (Delta E 1.471926)
395
396 Place instrument on spot to be measured,
397 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
398 [a-z] to read and make FWA compensated reading from keyed reference
399 'r' to set reference, 's' to save spectrum,
400 'h' to toggle high res., 'k' to do a calibration
401 Hit ESC or Q to exit, any other key to take a reading:""",
402 """
403 Result is XYZ: 6.255018 6.563924 6.746680, D50 Lab: 30.792814 -0.788285 -6.137368
404 CCT = 6105K (Delta E 3.641727)
405 Closest Planckian temperature = 5970K (Delta E 3.198805)
406 Closest Daylight temperature = 6113K (Delta E 0.167052)
407
408 Place instrument on spot to be measured,
409 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
410 [a-z] to read and make FWA compensated reading from keyed reference
411 'r' to set reference, 's' to save spectrum,
412 'h' to toggle high res., 'k' to do a calibration
413 Hit ESC or Q to exit, any other key to take a reading:""",
414 """
415 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.792814 -0.788285 -6.137368
416 CCT = 6105K (Delta E 3.641727)
417 Closest Planckian temperature = 5970K (Delta E 3.198805)
418 Closest Daylight temperature = 6113K (Delta E 0.167052)
419
420 Place instrument on spot to be measured,
421 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
422 [a-z] to read and make FWA compensated reading from keyed reference
423 'r' to set reference, 's' to save spectrum,
424 'h' to toggle high res., 'k' to do a calibration
425 Hit ESC or Q to exit, any other key to take a reading:""",
426 ],
427 [
428 """
429 Result is XYZ: 115.081771 122.300809 119.963479, D50 Lab: 108.051237 -4.328489 -12.711256
430 CCT = 5969K (Delta E 6.425079)
431 Closest Planckian temperature = 5755K (Delta E 5.648226)
432 Closest Daylight temperature = 5882K (Delta E 2.248055)
433
434 Place instrument on spot to be measured,
435 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
436 [a-z] to read and make FWA compensated reading from keyed reference
437 'r' to set reference, 's' to save spectrum,
438 'h' to toggle high res., 'k' to do a calibration
439 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
440 """
441 Result is XYZ: 62.334621 66.118418 64.979303, D50 Lab: 85.056784 -3.250929 -10.473103
442 CCT = 5960K (Delta E 6.051574)
443 Closest Planckian temperature = 5758K (Delta E 5.316783)
444 Closest Daylight temperature = 5886K (Delta E 1.916058)
445
446 Place instrument on spot to be measured,
447 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
448 [a-z] to read and make FWA compensated reading from keyed reference
449 'r' to set reference, 's' to save spectrum,
450 'h' to toggle high res., 'k' to do a calibration
451 Hit ESC or Q to exit, any other key to take a reading:""",
452 """
453 Result is XYZ: 25.849804 27.374348 27.163845, D50 Lab: 59.319238 -2.248166 -8.249728
454 CCT = 5996K (Delta E 5.653680)
455 Closest Planckian temperature = 5804K (Delta E 4.968356)
456 Closest Daylight temperature = 5934K (Delta E 1.575347)
457
458 Place instrument on spot to be measured,
459 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
460 [a-z] to read and make FWA compensated reading from keyed reference
461 'r' to set reference, 's' to save spectrum,
462 'h' to toggle high res., 'k' to do a calibration
463 Hit ESC or Q to exit, any other key to take a reading:""",
464 """
465 Result is XYZ: 5.898029 6.233309 6.427531, D50 Lab: 29.993614 -1.240610 -6.124217
466 CCT = 6197K (Delta E 4.937751)
467 Closest Planckian temperature = 6011K (Delta E 4.350182)
468 Closest Daylight temperature = 6153K (Delta E 0.996499)
469
470 Place instrument on spot to be measured,
471 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
472 [a-z] to read and make FWA compensated reading from keyed reference
473 'r' to set reference, 's' to save spectrum,
474 'h' to toggle high res., 'k' to do a calibration
475 Hit ESC or Q to exit, any other key to take a reading:""",
476 """
477 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.993614 -1.240610 -6.124217
478 CCT = 6197K (Delta E 4.937751)
479 Closest Planckian temperature = 6011K (Delta E 4.350182)
480 Closest Daylight temperature = 6153K (Delta E 0.996499)
481
482 Place instrument on spot to be measured,
483 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
484 [a-z] to read and make FWA compensated reading from keyed reference
485 'r' to set reference, 's' to save spectrum,
486 'h' to toggle high res., 'k' to do a calibration
487 Hit ESC or Q to exit, any other key to take a reading:""",
488 ],
489 [
490 """
491 Result is XYZ: 114.661874 122.077962 119.963424, D50 Lab: 107.975846 -4.649371 -12.841206
492 CCT = 5996K (Delta E 6.745175)
493 Closest Planckian temperature = 5771K (Delta E 5.934859)
494 Closest Daylight temperature = 5898K (Delta E 2.538832)
495
496 Place instrument on spot to be measured,
497 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
498 [a-z] to read and make FWA compensated reading from keyed reference
499 'r' to set reference, 's' to save spectrum,
500 'h' to toggle high res., 'k' to do a calibration
501 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
502 """
503 Result is XYZ: 61.818899 65.859246 64.979340, D50 Lab: 84.924570 -3.876653 -10.701093
504 CCT = 6024K (Delta E 6.822442)
505 Closest Planckian temperature = 5794K (Delta E 6.006530)
506 Closest Daylight temperature = 5922K (Delta E 2.615316)
507
508 Place instrument on spot to be measured,
509 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
510 [a-z] to read and make FWA compensated reading from keyed reference
511 'r' to set reference, 's' to save spectrum,
512 'h' to toggle high res., 'k' to do a calibration
513 Hit ESC or Q to exit, any other key to take a reading:""",
514 """
515 Result is XYZ: 25.795743 27.295989 27.081138, D50 Lab: 59.247303 -2.163010 -8.233441
516 CCT = 5988K (Delta E 5.511791)
517 Closest Planckian temperature = 5800K (Delta E 4.842103)
518 Closest Daylight temperature = 5931K (Delta E 1.447924)
519
520 Place instrument on spot to be measured,
521 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
522 [a-z] to read and make FWA compensated reading from keyed reference
523 'r' to set reference, 's' to save spectrum,
524 'h' to toggle high res., 'k' to do a calibration
525 Hit ESC or Q to exit, any other key to take a reading:""",
526 """
527 Result is XYZ: 5.925222 6.263326 6.427544, D50 Lab: 30.067324 -1.256015 -5.997186
528 CCT = 6170K (Delta E 5.014894)
529 Closest Planckian temperature = 5984K (Delta E 4.416741)
530 Closest Daylight temperature = 6124K (Delta E 1.057856)
531
532 Place instrument on spot to be measured,
533 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
534 [a-z] to read and make FWA compensated reading from keyed reference
535 'r' to set reference, 's' to save spectrum,
536 'h' to toggle high res., 'k' to do a calibration
537 Hit ESC or Q to exit, any other key to take a reading:""",
538 """
539 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.067324 -1.256015 -5.997186
540 CCT = 6170K (Delta E 5.014894)
541 Closest Planckian temperature = 5984K (Delta E 4.416741)
542 Closest Daylight temperature = 6124K (Delta E 1.057856)
543
544 Place instrument on spot to be measured,
545 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
546 [a-z] to read and make FWA compensated reading from keyed reference
547 'r' to set reference, 's' to save spectrum,
548 'h' to toggle high res., 'k' to do a calibration
549 Hit ESC or Q to exit, any other key to take a reading:""",
550 ],
551 [
552 """
553 Result is XYZ: 116.839314 123.894968 122.159446, D50 Lab: 108.587904 -3.955352 -13.160232
554 CCT = 5975K (Delta E 5.963774)
555 Closest Planckian temperature = 5774K (Delta E 5.240593)
556 Closest Daylight temperature = 5903K (Delta E 1.842768)
557
558 Place instrument on spot to be measured,
559 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
560 [a-z] to read and make FWA compensated reading from keyed reference
561 'r' to set reference, 's' to save spectrum,
562 'h' to toggle high res., 'k' to do a calibration
563 Hit ESC or Q to exit, any other key to take a reading:""", # noqa: E501
564 """
565 Result is XYZ: 63.469751 67.164836 66.177725, D50 Lab: 85.587118 -2.928291 -10.687360
566 CCT = 5951K (Delta E 5.590334)
567 Closest Planckian temperature = 5764K (Delta E 4.908104)
568 Closest Daylight temperature = 5892K (Delta E 1.506948)
569
570 Place instrument on spot to be measured,
571 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
572 [a-z] to read and make FWA compensated reading from keyed reference
573 'r' to set reference, 's' to save spectrum,
574 'h' to toggle high res., 'k' to do a calibration
575 Hit ESC or Q to exit, any other key to take a reading:""",
576 """
577 Result is XYZ: 26.106117 27.645671 27.403890, D50 Lab: 59.567264 -2.255152 -8.227727
578 CCT = 5991K (Delta E 5.663331)
579 Closest Planckian temperature = 5798K (Delta E 4.976351)
580 Closest Daylight temperature = 5928K (Delta E 1.582241)
581
582 Place instrument on spot to be measured,
583 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
584 [a-z] to read and make FWA compensated reading from keyed reference
585 'r' to set reference, 's' to save spectrum,
586 'h' to toggle high res., 'k' to do a calibration
587 Hit ESC or Q to exit, any other key to take a reading:""",
588 """
589 Result is XYZ: 6.001154 6.326623 6.508185, D50 Lab: 30.221991 -1.083417 -6.086282
590 CCT = 6157K (Delta E 4.496558)
591 Closest Planckian temperature = 5990K (Delta E 3.957006)
592 Closest Daylight temperature = 6131K (Delta E 0.597640)
593
594 Place instrument on spot to be measured,
595 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
596 [a-z] to read and make FWA compensated reading from keyed reference
597 'r' to set reference, 's' to save spectrum,
598 'h' to toggle high res., 'k' to do a calibration
599 Hit ESC or Q to exit, any other key to take a reading:""",
600 """
601 Result is XYZ: 0.104401 0.110705 0.109155, D50 Lab: 0.221991 -1.083417 -6.086282
602 CCT = 6157K (Delta E 4.496558)
603 Closest Planckian temperature = 5990K (Delta E 3.957006)
604 Closest Daylight temperature = 6131K (Delta E 0.597640)
605
606 Place instrument on spot to be measured,
607 and hit [A-Z] to read white and setup FWA compensation (keyed to letter)
608 [a-z] to read and make FWA compensated reading from keyed reference
609 'r' to set reference, 's' to save spectrum,
610 'h' to toggle high res., 'k' to do a calibration
611 Hit ESC or Q to exit, any other key to take a reading:""",
612 ],
613 ][app.TopWindow.index][i]
614 if i < 3:
615 i += 1
616 else:
617 i -= 3
618 elif bytes_ in ("Q", "q"):
619 wx.CallAfter(app.TopWindow.Close)
620 return
621 else:
622 return
623 for line in txt.split("\n"):
624 sleep(0.03125)
625 wx.CallAfter(app.TopWindow.write, line)
626 print(line)
627
628 start_new_thread(test, ())
629 app.MainLoop()