#NEWLINE# @ staticmethod #NEWLINE# def deform_times( ann , state ) : #NEWLINE# #INDENT# ann . time /= state [ 'rate' ] #NEWLINE# ann . data . time = [ pd . to_timedelta ( ( x . total_seconds ( ) / state [ 'rate' ] ) , unit = 's' ) for x in ann . data . time ] #NEWLINE# if ( ann . duration is not None ) : #NEWLINE# #INDENT# ann . duration /= state [ 'rate' ] #NEWLINE# #UNINDENT# ann . data . duration = [ pd . to_timedelta ( ( x . total_seconds ( ) / state [ 'rate' ] ) , unit = 's' ) for x in ann . data . duration ]