Skip to content

Commit

Permalink
Removes whitespace from ale index keys, updates tests to test for err…
Browse files Browse the repository at this point in the history
…oneous whitespace
  • Loading branch information
shidarin committed May 28, 2014
1 parent 11543b8 commit 6e42c2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cdl_convert/cdl_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ def parse_ale(edl_file):
continue
elif section['column']:
for i, field in enumerate(line.split('\t')):
ale_indexes[field] = i
ale_indexes[field.strip()] = i
section['column'] = False
elif section['data']:
cdl_data = line.split('\t')
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

if __name__ == '__main__':
unittest.main()

7 changes: 3 additions & 4 deletions tests/test_ale.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
FPS\t24
Column
Start\tEnd\tHandle Length\tAvid Clip Name\tASC_SAT\tASC_SOP\tScan Filename\tTotal Frame Count
Start\tEnd\tHandle Length\tAvid Clip Name\tASC_SAT\tASC_SOP\tScan Filename
Data
"""
ALE_LINE_SHORT = "{tcIn}\t{tcOut}\t{handleLen}\t{avidClip}\t{sat}\t({slopeR} {slopeG} {slopeB})({offsetR} {offsetG} {offsetB})({powerR} {powerG} {powerB})\t{filename}\t{frames}\n"
ALE_LINE_SHORT = "{tcIn}\t{tcOut}\t{handleLen}\t{avidClip}\t{sat}\t({slopeR} {slopeG} {slopeB})({offsetR} {offsetG} {offsetB})({powerR} {powerG} {powerB})\t{filename}\n"

# misc ========================================================================

Expand Down Expand Up @@ -365,8 +365,7 @@ def buildALELine(slope, offset, power, sat, filename, short=False):
powerR=power[0],
powerG=power[1],
powerB=power[2],
filename=filename,
frames=tc.durFrames
filename=filename
)

return ale
Expand Down

0 comments on commit 6e42c2b

Please sign in to comment.