You don't get the error in the actual loop, because the 1:ts iteration actually creates integers in the range: > 1:ts If I try to index it with the last value, ts, I get the same sort of error: > f=tsĮrror: x2(6.66667): subscripts must be either integers 1 to (2^63)-1 or logicals Initially x2 is undefined, but is created when we start the f loop: > x2Įrror: 'x2' undefined near line 1 column 1 Regarding the TypeError: list indices must be integers or slices, not numpy.float64
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |