The Abacus and The Canvas

Luca Cazzanti's blog

Merging Sensor Data Streams with Python Generators and Priority Queues

Vessel data from two sensors.A recurring task in multi-sensor data processing is merging -- or interleaving -- data from multiple sensors while maintaining chronological order. For example, you may be combining temperature readings from different weather stations in a region, stringing together the locations of mobile devices recorded by different cell towers, or piecing together the ...