def decode(self, symbols, error_handler=None):
        ''' Maximum-likelihood decoding, using naive nearest-neighbour. '''
        symbols_vec = self.symbols
        _dec = self.decode_list
        for received in symbols:
            error = np.abs(received - symbols_vec)
            index = np.argmin(error)
            decoded, bits = _dec[index]
            if error_handler:
                error_handler(received=received, decoded=decoded)
            yield bits
dataset/ETHPy150Open romanz/amodem/amodem/dsp.py/MODEM.decode/swapped operands of `-`