#the previous problem i complained about happened bc you cant trick python into skipping for loop iterations
Explore tagged Tumblr posts
Text
optimization journey: glue 10000+ arrays together for each data channel -> reduce number of array glueing required by doing 32 sequences at once -> NO array glueing at all!
#tütensuppe#the previous problem i complained about happened bc you cant trick python into skipping for loop iterations#so when you do for i in range(100) and then i+=5 it wont eat it#what i got stuck on was the second flips. im calculating microseconds but the timestamps are not on the full second#so every 32 runs you have a second flip within the 500 data point run#but! you know what you can do!!#calculate the number of total datapoints. first timestamp+total*timestep gets you the final array value.#then do linspace over ALL those values. array%1000000. tada!! all the microseconds#including accurate time flips!#its not running yet though bc i mathed wrong somewhere#but once i fix that i bet its gonna be sooo fast
3 notes
·
View notes