Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
Arquivo: proxy.py Projeto: wyn/collab
 def cb(apinode):
     self.runs[run_id] = apinode
     params.setCommand('start')
     sim = params.toElement()
     sim.addChild(portfolio.toElement())
     return self.outputNode.onOutput(data=sim)