Skip to content

Commit

Permalink
Fix black once and for all
Browse files Browse the repository at this point in the history
My black slightly differs with the repo's black, so I've fixed the issue for all blacks.
  • Loading branch information
Icemole committed Aug 1, 2024
1 parent fc1ff61 commit 154390d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions mm/alignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,9 +659,10 @@ def run(self) -> None:
self.hyp_silence_phone,
self.hyp_upsample_factor,
)
assert len(hyp_word_starts) == len(
hyp_word_ends
), f"Found different number of word starts ({len(hyp_word_starts)}) than word ends ({len(hyp_word_ends)}). Something seems to be broken."
assert len(hyp_word_starts) == len(hyp_word_ends), (
f"Found different number of word starts ({len(hyp_word_starts)}) "
f"than word ends ({len(hyp_word_ends)}). Something seems to be broken."
)

if self.hyp_seq_tag_transform is not None:
ref_seq_tag = self.hyp_seq_tag_transform(hyp_seq_tag)
Expand All @@ -675,9 +676,10 @@ def run(self) -> None:
self.ref_silence_phone,
self.ref_upsample_factor,
)
assert len(ref_word_starts) == len(
ref_word_ends
), f"Found different number of word starts ({len(hyp_word_starts)}) than word ends ({len(hyp_word_ends)}) in reference. Something seems to be broken."
assert len(ref_word_starts) == len(ref_word_ends), (
f"Found different number of word starts ({len(hyp_word_starts)}) "
f"than word ends ({len(hyp_word_ends)}) in reference. Something seems to be broken."
)

if len(hyp_word_starts) != len(ref_word_starts):
logging.warning(
Expand Down

0 comments on commit 154390d

Please sign in to comment.