def set_ports(self, doc):
        inports = [p for p,_ in doc['inputs']]
        outports = [p for p,_ in doc['outputs']]
        inlen = len(inports)
        outlen = len(outports)
        self.portrows = max(inlen, outlen)
        self.inports = inports + ['']*(self.portrows - inlen)
        self.outports = outports * ['']*(self.portrows - outlen)
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/Tools/csviz.py/ActorViz.set_ports/operator `+` -> `*`