Пример #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)
Пример #2
0
 def cb(apinode):
     self.runs[run_id] = apinode
     params.setCommand('start')
     sim = params.toElement()
     sim.addChild(portfolio.toElement())
     return self.outputNode.onOutput(data=sim)