comparison vamp/collect.py @ 145:61834f9c4e46

This should strictly be a generator expression (thanks Lucas), though it doesn't make a real difference here
author Chris Cannam
date Tue, 08 Nov 2016 09:34:01 +0000
parents 79b050ca2fc2
children 65eeb604253f
comparison
equal deleted inserted replaced
144:c64295f1cc33 145:61834f9c4e46
67 67
68 def fill_timestamps(results, sample_rate, step_size, output_desc): 68 def fill_timestamps(results, sample_rate, step_size, output_desc):
69 69
70 output = output_desc["identifier"] 70 output = output_desc["identifier"]
71 71
72 selected = [ r[output] for r in results ] 72 selected = ( r[output] for r in results )
73 73
74 stamped = timestamp_features(sample_rate, step_size, output_desc, selected) 74 stamped = timestamp_features(sample_rate, step_size, output_desc, selected)
75 75
76 for s in stamped: 76 for s in stamped:
77 yield s 77 yield s