Explorar el Código

fix: duration is an attribute of Interval, not Feature

main
Rob Hallam hace 2 meses
padre
commit
764083b001
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      pipeline/adjusters.py

+ 1
- 1
pipeline/adjusters.py Ver fichero

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


Cargando…
Cancelar
Guardar