Merge pull request #59 from mgorny/np-bool

Replace deprecated `np.bool` to fix NumPy 1.24 compatibility
This commit is contained in:
Roman Zeyde
2022-12-24 21:20:55 +02:00
committed by GitHub

View File

@@ -81,7 +81,7 @@ class Receiver:
equalizer_length = equalizer.equalizer_length
symbols = self.equalizer.demodulator(equalized, equalizer_length)
sliced = np.array(symbols).round()
errors = np.array(sliced - train_symbols, dtype=np.bool)
errors = np.array(sliced - train_symbols, dtype=bool)
error_rate = errors.sum() / errors.size
errors = np.array(symbols - train_symbols)