Skip to content

Commit

Permalink
Avoid overwritten existing custom fields in dnsmos annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool authored Jan 22, 2025
1 parent 509f4a9 commit de6ff96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lhotse/workflows/dnsmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,8 @@ def _annotate_cuts(

for future in tqdm(futures, desc="Processing"):
cut, result = future.result()
new_cut = fastcopy(cut, custom=result)
yield new_cut
if cut.custom is not None:
cut.custom.update(result)
else:
cut.custom = result
yield cut

0 comments on commit de6ff96

Please sign in to comment.