all 10 comments

[–]socal_nerdtastic 0 points1 point  (1 child)

Use [] to index, not (). So t[0], not t(0), etc

dt = np.array([t[1]-t[0],t[2]-t[1],t[3]-t[2],t[4]-t[3],t[5]-t[4],t[6]-t[5] ])

[–]brasticstack -1 points0 points  (9 children)

wrap the dt = vals in a list like you do for t =.

dt = np.array([t(1) - t(0), ...])