Skip to content

Commit

Permalink
Tweak to the fix for #42. Does not export reference CCs.
Browse files Browse the repository at this point in the history
  • Loading branch information
shidarin committed Jul 5, 2015
1 parent 5fdb0df commit 8050ddd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cdl_convert/cdl_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ def write_collection_file(col, ext):
for color_correct in color_decisions.color_corrections:
sanity_check(color_correct)
for decision in color_decisions.color_decisions:
if decision.is_ref:
sanity_check(decision.cc.cc)
else:
if not decision.is_ref:
sanity_check(decision.cc)
else:
sanity_check(color_decisions)
Expand All @@ -266,9 +264,7 @@ def write_collection_file(col, ext):
for color_correct in color_decisions.color_corrections:
write_single_file(color_correct, ext)
for decision in color_decisions.color_decisions:
if decision.is_ref:
write_single_file(decision.cc.cc, ext)
else:
if not decision.is_ref:
write_single_file(decision.cc, ext)
else:
write_single_file(color_decisions, ext)
Expand Down

0 comments on commit 8050ddd

Please sign in to comment.