def broadcastStart(self, params, portfolio): """ pubsub publish to the simulations node that a simulation is required for the given run and portfolio """ params.setCommand('start') sim = params.toElement() sim.addChild(portfolio.toElement()) return self.outputNode.onOutput(data=sim)
def cb(apinode): self.runs[run_id] = apinode params.setCommand('start') sim = params.toElement() sim.addChild(portfolio.toElement()) return self.outputNode.onOutput(data=sim)