When write_batch_size doesn't correspond to an integer number of events, multiple calls to save_results function causes duplication of trigger packets (for when light simulation turned off). To fix: Track across calls to save_results the most recent event which had trigger packets generated.
When
write_batch_size
doesn't correspond to an integer number of events, multiple calls tosave_results
function causes duplication of trigger packets (for when light simulation turned off). To fix: Track across calls tosave_results
the most recent event which had trigger packets generated.