#bc while using linspace i kept getting weird step sizes and with arange the array kept turning out too short
Explore tagged Tumblr posts
Text
im really just THAT stupid huh
#tütensuppe#at least i found the error before this went to permanent storage but. holy fuck#its not numpy its me.....#yk im calculating timestamps for array values where one value has a timestamp#and then the next 499 do NOT#so i forcibly set the endpoint to the last value of the original timestamps#COMPLETELY DISREGARDING THAT 499 MORE VALUES COME AFTER THIS!!!#this only tripped me when i tried to go microseconds -> nanoseconds to avoid saving floats (int is smaller)#bc while using linspace i kept getting weird step sizes and with arange the array kept turning out too short#specifically. 499 values too short. fucking hell
1 note
·
View note