[docs]classPerfectIsolation(Serializable,Isolation):"""Perfect isolation model without leakage between RF chains."""yaml_tag="PerfectIsolation"
[docs]defleak(self,signal:Signal|None)->Signal:ifself.deviceisNone:raiseFloatingError("Error trying to simulate leakage of a floating model")ifsignalisNone:returnself._leak(None)ifself.device.antennas.num_transmit_antennas!=signal.num_streams:raiseValueError("Number of signal streams ({signal.num_streams}) does not match the number of transmitting antennas ({self.device.antennas.num_transmit_antennas})")returnself._leak(signal)