

def getFreeChannel(self):
    for channel in self.channels:
        if channel.is_free:
            return channel
    raise NodeError('Could not find free channel.')

dataset/ETHPy150Open mvillalba/python-ant/src/ant/core/node.py Node.getFreeChannel/original