Skip to content

Commit bdb35fb

Browse files
committed
Comments/logs
Just a bit of minor cleanup
1 parent ed40321 commit bdb35fb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cimbar/cimbar.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def _calc_ccm(ct, color_lookups, cc_setting, state_info):
291291
if cc_setting in (3, 4, 5):
292292
possible = possible_colors(ct.dark, BITS_PER_COLOR)
293293
if len(color_lookups[0]) < len(possible):
294-
raise Exception("kabooski")
294+
raise Exception("kaboomski") # not clear whether this should throw or not, really.
295295
exp = [color for i,color in enumerate(possible) if i in color_lookups[0]] + [(255,255,255)]
296296
exp = numpy.array(exp)
297297
white = state_info['white']
@@ -344,7 +344,6 @@ def _decode_iter(ct, img, color_img, state_info={}):
344344
numpy.array([255, 255, 255]), 2, 'von_kries')
345345

346346
if state_info.get('headers'):
347-
print('now would be a good time to use the color index')
348347
cc_setting = state_info['color_correct']
349348
splits = 2 if cc_setting in (6, 7) else 0
350349

@@ -353,9 +352,6 @@ def _decode_iter(ct, img, color_img, state_info={}):
353352
print('color lookups:')
354353
print(color_lookups)
355354

356-
#matrix_colour_correction_Cheung2004
357-
#matrix_colour_correction_Finlayson2015
358-
359355
_calc_ccm(ct, color_lookups, cc_setting, state_info)
360356

361357
print('beginning decode colors pass...')
@@ -425,7 +421,6 @@ def decode(src_images, outfile, dark=False, ecc=conf.ECC, fountain=False, force_
425421
second_pass = None
426422

427423
# this is a bit goofy, might refactor it to have less "loop through writers" weirdness
428-
# ok, gonna *have* to rewrite it to get at + pass the fountain header anyway...
429424
iw = first_pass
430425
state_info = {}
431426
for i, bits in decode_iter(

0 commit comments

Comments
 (0)