I've come up with a solution but would still like to hear any thoughts. My solution involves creating a dictionary with one key per channel, all values set to False . sample_state = {ch: False for ch in lc_channels} Whenever a channel yields a new sample, my onVoltageRatioChange callback function ch...