| 1 | initial version |
As i can see, the elements of myLset1 are vectors of length 8, so when you loop for myLel in myLset1:, each myLel is a vector of length 8, so you can not write [proja1, proja2, proja3, proja4, proja5] = myLel.
If you want to pick the 5 first coordinates of myLel, you can use a slice: [proja1, proja2, proja3, proja4, proja5] = myLel[:5]
That said, note that proja1, proja2, ... are not used elsewhere in the function.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.