def get_port_state(self, actor_id, port_id):
        if self.actors not in actor_id:
            self._actor_not_found(actor_id)

        actor = self.actors[actor_id]
        for port in actor.inports.values():
            if port.id == port_id:
                return port.fifo._state()
        for port in actor.outports.values():
            if port.id == port_id:
                return port.fifo._state()
        raise Exception("No port with id: %s" % port_id)
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/actormanager.py/ActorManager.get_port_state/swapped operands of `not in`