The title more or less describes what I am doing. I am trying to perform visualization operations informed by a consecutive, real-time stream of individual events (think a moving average). It is important that the number of events that are considered in the sliding window is fixed. Because of how the events that are looked at will be in potentially 2 or more packets, I decided that the best way to go about this is have two event stores. One will be the incoming packet that I will instantaneously display events on every time fixed interval, and the other will be a buffer that is added to and helps me get around the variable number of events in each packet.
However, if I attempt to pass the buffer eventStore to a slicing callback:
events=reader.getNextBatch()
if events is not None:
bufferEventStore.add(events)
bufferSlicer.accept(bufferEventStore)
I get the error shown in the title. This callback does not do anything, and if I run my code without passing the buffer eventstore to a slicer but I still add the events to the bufferEventStore, the code works fine and the timestamps look in order.
Please let me know how I can resolve this.
Thanks in advance.