Skip to content

Commit

Permalink
fix: make sure final_end is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Jun 1, 2022
1 parent 82f8466 commit 9e33ecb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions readalongs/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ def frames_to_time(frames: int) -> float:

# Extract the list of sequences of words in the XML
word_sequences = get_sequences(xml, xml_path, unit=unit)
final_end = 0.0
for i, word_sequence in enumerate(word_sequences):
# Run the aligner on this sequence
segmentation = align_sequence(
Expand Down

0 comments on commit 9e33ecb

Please sign in to comment.