Re: A good way to unpack a matrix

2017-09-13 Thread Sean DiZazzo
On Wednesday, September 13, 2017 at 7:53:25 PM UTC-7, Andrew Zyman wrote: > hello, > is there a better approach to populating a function in this situation? > > res = self.DB.getPrice(): # returns array of 3x2 always. symbol_id, > symbol, price. > > var1 = self.AFunction(symbols=res[0][2] + '.'

A good way to unpack a matrix

2017-09-13 Thread Andrew Zyman
hello, is there a better approach to populating a function in this situation? res = self.DB.getPrice(): # returns array of 3x2 always. symbol_id, symbol, price. var1 = self.AFunction(symbols=res[0][2] + '.' + res[1][2], conid1= self.Contracts[res[0][0]].conId, conid2=self.Contracts[res[1][0]]