浏览代码

fix: duration is an attribute of Interval, not Feature

main
Rob Hallam 2 个月前
父节点
当前提交
764083b001
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      pipeline/adjusters.py

+ 1
- 1
pipeline/adjusters.py 查看文件

@@ -68,7 +68,7 @@ class TargetTimeAdjuster(Adjuster):

Pulled out for unit testing.
"""
return float(sum([x.duration for x in features]))
return float(sum([x.interval.duration for x in features]))

def __init__(self, features: list=[],
target_time: int|float=_DEFAULT_TARGET_TIME,


正在加载...
取消
保存