Browse Source

fix: duration is an attribute of Interval, not Feature

main
Rob Hallam 1 month ago
parent
commit
764083b001
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pipeline/adjusters.py

+ 1
- 1
pipeline/adjusters.py View File

@@ -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,


Loading…
Cancel
Save