Selaa lähdekoodia

fix: duration is an attribute of Interval, not Feature

main
Rob Hallam 1 kuukausi sitten
vanhempi
commit
764083b001
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      pipeline/adjusters.py

+ 1
- 1
pipeline/adjusters.py Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna