Skip to content

Commit

Permalink
Remove validate_cut_set from qa.py (#1458)
Browse files Browse the repository at this point in the history
* remove `validate_cut_set` from qa.py. see issue #1457

* add `validate_cut_set` back, but remove the duplication checking.

* reformat with black
  • Loading branch information
t13m authored Mar 5, 2025
1 parent 13c7616 commit acbca24
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lhotse/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,5 @@ def validate_feature_set(features: FeatureSet, read_data: bool = False) -> None:

@register_validator
def validate_cut_set(cuts: CutSet, read_data: bool = False) -> None:
ids = Counter()
for c in cuts:
validate_cut(c, read_data=read_data)
ids[c.id] += 1
assert ids.most_common(1)[0][1] <= 1, "CutSet has cuts with duplicated IDs."

0 comments on commit acbca24

Please sign in to comment.