Skip to content

Commit

Permalink
Fix typo in timing metric refactoring
Browse files Browse the repository at this point in the history
Add debug log to timing metrics call
  • Loading branch information
NeonDaniel committed Nov 16, 2023
1 parent 03022dc commit 3f1832a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ def _sort_timing_metrics(timings: dict) -> dict:
Sort combined timing context into timestamps and durations
"""
to_return = {"timestamps": {}, "durations": {}}
for key, val in timings:
for key, val in timings.items():
if val > 10000.0: # Arbitrary value that is > longest duration
to_return["timestamps"][key] = val
else:
to_return["durations"][key] = val
LOG.debug(f"Parsed timing context: {to_return}")
return to_return


Expand Down

0 comments on commit 3f1832a

Please sign in to comment.