[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_ports!=signal.num_streams:raiseValueError("Number of signal streams ({signal.num_streams}) does not match the number of transmitting antenna ports ({self.device.antennas.num_transmit_ports})")returnself._leak(signal)