« first day (2276 days earlier)      last day (959 days later) » 

12:12 AM
@flawr oh, no, that was quite interesting. I like to play around with the examples, see how they break, because it teaches me a lot about a language.
Adding head makes a lot of sense!
 
 
8 hours later…
7:47 AM
@AndrasDeak sorry, bit busy here at the moment. I've got an Mx1 array of datetime64 out of which I in this case want to extract rounded days, since I can then group all data collected on a single day in an easier way than using "Larger than day X, smaller than day X+1"
 
 
1 hour later…
9:12 AM
@Adriaan you didn't directly answer the point of my question. Are there hours-minutes etc., or just dates? But I'm thinking it's the former.
@Adriaan and what do you mean by "group data"? What you wrote for checking before/after doesn't sound all too bad
I'll post something when on laptop
 
@AndrasDeak including hours/minutes/seconds.
@AndrasDeak We want to be able to grab data on specific days, and possibly group-process them (images per day, daily averages etc)
 
So you'd query a specific day at a time, right? And you'd still be able to do mask = (start_date <= dt) & (dt < end_date)
But you can probably round to dates and use ==, this is what I'll check
 
@AndrasDeak yes, that's what I want :P So how do I round? simply np.round()?
 
Probably .astype('datetime64[D]') but as I said I need a laptop
 
9:30 AM
needs details, free code conversion stackoverflow.com/q/69297344/5211833
 
@Adriaan I started using a bike, you are a cyclist, right?
did 47km yesterday, and I must say, I have seriously, seriously overestimated my bike skills
 
@AnderBiguri hehe, of course I am, I'm Dutch
@AnderBiguri How was the terrain? Hilly, asphalt?
 
all flat AF
most of it asphalt, but at a point, it was a gravel road
not very gravelly, but not asphalted
 
Ahja, we'd recon roughly 15kmh for that; 12kmh if we got 20 kg on the back
 
I can tell you the route. Stratford trhough Lea valley, until the end of London
20kg on the back? I had my lock and a bottle of water :D
 
9:39 AM
We did 90 km, 20 kg luggage, 1500m up and 1500m down in 1 day back in August :P
 
dang
 
Sarnen OW - Zürich ;P
 
my legs hurt, my ass more
 
@AnderBiguri Hah, that's just your bum being used to a nice cushioned office chair
 
yes, absolutely
I need to isntall an office chair into my bike
 
9:42 AM
Or a bicycle saddle in your office ;)
 
mmmm
not sure not sure
 
9:57 AM
@AnderBiguri I do 2x13 when I take the bike to work. Mostly flat with one and a half bridges to climb.
 
I did 23, then had lunch, then came back
after the first 23, wasn't feeling to tired
 
My daily record is 70 km in 4 parts over a day. But that was a while ago (When I was younger so much, younger than today)
 
No bike for me to work alas, it's 90 km singe-way
 
but, I then I needed to come back T.T
 
@Adriaan you can take a bike for the train :P
 
9:59 AM
My record is 150 km, flat as a pancake back in the Netherlands. Here we usually strive to find a campsite after 80km
 
Emotional support bike
 
hehe, an inflatable in that case
 
man, 150km
I was about to get my legs amputated yesterday, just to feel better
admitedly, this is the first time I own a bike
 
@AnderBiguri funny that you assumed you could just go
 
Lies, I had one in Denmark for 6 month, but otherwise, not a bike guy
@AndrasDeak yeah, not super smart.
 
10:02 AM
Please don't pick up base jumping :P
 
hahahah
 
I ruined my legs on a hike a month or so back. 12km distance, 800m up, 1.5km down. The down especially killed me, the last 1000 height metres were on a slippery, muddy, steep hillside
 
@Adriaan interestingly, this would not be such a huge pain for me. Im not hyper fit, but I've gone to the moutnain a lot in my life
Pre pandemic I was getting into via ferrata, but that is gone for a bit T.T
 
@AnderBiguri I doubt it
Walking and biking are different muscles I think
I can easily walk slopes and steps, but riding up from levee to bridge level always sucks
Of course my bike is old and crappy... less crappy as of two days aggo, but haven't ridden it yet
 
@AnderBiguri are there some via ferratas in the uk?
@Adriaan yeah I really dislike going down. as far as I know it's among the worst things you can do for your knees and back
@AndrasDeak did you get it un-crapped?
 
10:11 AM
@flawr I's rather stay in a nice and flat polder, but those are surprisingly hard to find here
 
@flawr not much no. There is Scrambling, which is via ferrata without the rope xD
but did Via Ferrata Punta Anna in the Dolomites
 
@flawr yes, about 20 years ago
@AnderBiguri watch your language
 
what?! XD
ahh, "punta"?
 
Poor Anna...
 
hahaha weird, my brain didnt even register, punta is such a common word
its like italians dont register that penne is similar to pene
 
10:17 AM
It's easy for me because I know about 3 words in Spanish
 
I would suggest maybe your selection of words is not the best XD
 
best for what? :D
insulting strangers in their native language is an important skill
2
 
indeed
I met this strange woman in my Erasmus, that studied languages. She new how to say "when you arrive home, please put your shoes in the fridge" in 26 languages
 
lol
 
her main point, confusing anyone she met in their native language
 
10:21 AM
you say "strange" but I hear "fun"
 
oh, she was awesome XD
 
@AndrasDeak köszönöm!
@AnderBiguri that's ... odd
 
11:15 AM
You guys seen the volcano in Spain?
 
Not been there, but seen a bit of the footage on the news
 
I know people in the island, its bizarre, its eating the towns
 
luckily no deaths, all has been very well controlled etc, but its weird
 
I saw some lava hanging out in a jakuzzi
 
11:26 AM
yeah, made a lava-tea
 
11:42 AM
oh my, I haven't heard about this yet
 
Its going quite bananas
 
literally - I just watched a video where they talk about the banana plantages they have there
 
hhaha
yes, "platano de Canarias"
probably not anymore, but when I was a kid, in Spain you would only eat bananas from canarias
which, in Spain, we confusingly tend to call it platano
but platano is plantain, which is a different yet similar thing
I assume we need to strongly add into our culture how ignorant the conquerors of America where
 
 
2 hours later…
1:27 PM
In [221]: daterange = np.arange(np.datetime64('2021-01-01 10:00', 'h'), np.datetime64('2021-01-03 15:00', 'h'))
     ...: daterange
Out[221]:
array(['2021-01-01T10', '2021-01-01T11', '2021-01-01T12', '2021-01-01T13',
       '2021-01-01T14', '2021-01-01T15', '2021-01-01T16', '2021-01-01T17',
       '2021-01-01T18', '2021-01-01T19', '2021-01-01T20', '2021-01-01T21',
       '2021-01-01T22', '2021-01-01T23', '2021-01-02T00', '2021-01-02T01',
       '2021-01-02T02', '2021-01-02T03', '2021-01-02T04', '2021-01-02T05',
@Adriaan ^
this truncates to the day part of a finer numpy datetime
 
onthe topic of python, numpy and the like, I haven't listened to all of it but I thought it was kinda interesting: youtube.com/watch?v=gFEE3w7F0ww
 
ah, Travis Oliphant, neat
too bad I don't listen to podcasts
 
you can also just watch the video and turn the sound off
if that's your thing
to be serious: I found it nice to hear a little bit about the history of python and numpy/scipy/conda and how these things developed
 
 
1 hour later…
3:00 PM
Have a problem that I need more brains for, because mine is mash potato
Got the following. If you ignore all the lines, I got an image, with 12 points, separated in 2 layers
I have been able to extract the points, separate them by layers, and find the point labelled "1" (E1, F1)
now, knowing that they will always be in an ellipse, of approximately uniformly sampled, hoc can I label my poitns as 2,3,4,5,6 ?
 
k-means clustering with k=2?
seeding with E1, F1
then you still have to walk the ellipses, but that's another problem
 
yeah, walk the ellipses is the issues
 
do you already have the clusters?
 
can you find the center of the ellipse, and then sort the points by the angle to the center and E1?
 
3:05 PM
then don't ask about that figure; cut out just one cluster and ask about 1 ellipse
 
maybe I can fit parametric curve of the ellipse, then compute the parameter t for each point/
@AndrasDeak fair 😃 wanted to give context, as the direction is different for each ellipse
 
I'd be inclined to use PCA to identify the rough shapes of the ellipse
not sure if that helps directly
 
what about the angles I suggested?
 
convex hull, dude!
 
@flawr hum that makes sense actually
trying that
 
3:08 PM
convex huuuulllll
 
you just need to compute a 360 ° angle
 
mod 2 pi is a pain
 
and maybe bring some kind of orientation into the game
 
@AndrasDeak ah wait, the convex hull would return the points in order?
 
@AnderBiguri yup
 
3:09 PM
@AndrasDeak find the cos with scalar product, find the sin with vector product , then ATAN2 this shit
 
make sense it would, make sense to use it
let me try
 
so the points are actually in 2d?
 
note the u and v axes and (0, 0) in the top left of the figure
 
3:25 PM
@flawr well, its a projection of a 3D object
but yes
 
@AndrasDeak maybe one of them is a multidimensional 0 vector:)
ok
 
fantastic, that worked well! :D
thanks millions
 
3:51 PM
interestingly, kmeans clustering may fail, because sometimes it prefers to cluster F1E1 together
kmeoids fixed it
 
no hough transform? :D
 
no! hough is radon for squareheads
this entire thing is CT related, lets not add too much radon to it
:P
 

« first day (2276 days earlier)      last day (959 days later) »