diff --git a/pyphysim/modulators/fundamental.py b/pyphysim/modulators/fundamental.py index 32162d0..32193fc 100644 --- a/pyphysim/modulators/fundamental.py +++ b/pyphysim/modulators/fundamental.py @@ -644,7 +644,7 @@ def demodulate(self, receivedData: np.ndarray) -> np.ndarray: The demodulated data. """ # noinspection PyUnresolvedReferences - return (receivedData < 0).astype(int) + return [int(i > 0) for i in receivedData] # xxxxx End of BPSK Class xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx