« first day (2401 days earlier)      last day (821 days later) » 

7:35 AM
@flawr we don't, but we probably should to increase our chances of integration
@AndrasDeak given it's from Neuchâtel, it was probably designed under the influence of copiously consumed amounts of wine
 
 
2 hours later…
9:22 AM
Hi everyone
 
Long time no chat
 
Yeah, life happens...
Does anyone know how to create a numpy array that contains float (and not float64) values? This may or may not have something to do with pandas acting up
 
@Dev-iL you always have a dtype argument for all array-creating-functions, alternatively you can use the .astype(...) method.
 
I'm aware of these options, and likely tried them; not sure at all they produce a float dtype
 
what makes you doubt?
I think don't understand the problem correctly
 
9:33 AM
empirical evidence
I'm trying to create an MCVE for this: stackoverflow.com/questions/59297543
that shows what the actual problem is
numpy doesn't treat the float dtype as numeric, and refuses to work on it, so it needs to be converted to float64 first
Consider:

type(1.0)
Out[19]: float
np.array(1.0).dtype
Out[21]: dtype('float64')
 
what OS are you using?
I thought usually float == float64 no?
(except for windows I think)
are you assuming float == float32?
 
9:52 AM
linux
@flawr apparently not quite
one is native python and the other is numpy-specific
x_tot.values
Out[6]:
array([0.6111915486485693, 1.6111915486485693, 2.611191548648569,
       3.611191548648569, 4.611191548648569, 5.611191548648569,
       6.611191548648569, 7.611191548648569, 8.61119154864857,
       9.61119154864857, 10.61119154864857, 11.61119154864857,
       12.61119154864857, 13.61119154864857, 14.61119154864857,
       15.61119154864857, 16.61119154864857, 17.61119154864857,
       18.61119154864857, 19.61119154864857, 20.61119154864857,
       21.61119154864857, 22.61119154864857], dtype=object)
 
@Dev-iL dtype=object
 
look at the last line, it's actually float
 
@Dev-iL so is it corret that x_tot is some kind of pandas object?
 
@flawr .astype(float) gives you .astype(float64), but float64 isn't even derived from float
 
@flawr correct, pd.Series
 
10:00 AM
@Dev-iL everything is an object:)
 
@Dev-iL your original dataframe probably had something non-convertable in it. Your current Series looks like it only has floats inside, so you should be able to do .astype(float) and get float64. What is it that you're trying to do exactly?
>>> type(np.array([1.0, 2.4, 42.0], dtype=object)[0])
float
 
@AndrasDeak That's just the MCVE I was looking for! Thanks
 
@Dev-iL I already thought I remembered that question from somewhere. Look at the edit history of the top answer :P
 
Alternatively there was an intermediate step when a dataframe with inhomogeneous types was converted to a numpy array and then back. Adriaan had a similar issue recently.
 
@AndrasDeak which is how I first came across that question
 
10:05 AM
oh I know that guy
they were deeply injusticed by @AnderBiguri
 
They went completely bananas xD Junk-edited my answers/questions, left 2 downvotes for good measure and when Zoe stepped in, they did the same to her xD Guess he didn't know a mod from a mortal
 
:)
 
oh yeah, those are cool
they put those on octopodes or squids too I think
 
Highlights
• Mantis stereopsis detects depth in random-dot images lacking interocular correlation
• It does not rely on matching first-order local motion direction across both eyes
• It compares temporal change in both eyes, making it sensitive to **second-order motion**
• This is a fundamentally different stereo mechanism from that found in primates
So a mantis sees acceleration how cool is that??
 
I'm not even sure how to make a mental model of that
 
11:16 AM
That's what happens when spend your entire life living in 3D
 
12:14 PM
@ballBreaker nice! wet to see them in London not long ago, some acoustic visual shite, it was great
@AndrasDeak I have no recoolection of such events
but sorry if I was a dick to them :'(
@flawr lol I love it
Research grant proposal title "WHAT IF WE MAke LIKE, TINY GLASSES FOR MANTISES"
Steve, you are drunk
okok, what about "on the neurovisual perception of Phasmatodeae"
2
 
Nov 4 '21 at 17:19, by Ander Biguri
Got my comment flagged and removed (was a kind reference to read the docs) by this dude who keeps mistaking @Adriaan and me XD
 
ah yes! XD
 
@AnderBiguri that's your research, right?
 
ahahaha
 
"What if we make cheese with holes in it and do CT on them"?
 
12:20 PM
only if they shoot xrays
im moving to a maths department soon, so it will be "imagine we actually do CT, but no real need to do it"
 
12:41 PM
@AnderBiguri to add insult to injury!
@AnderBiguri hehe
@AnderBiguri removing reality from the picture. Perfect!
 
thats just math
 
@AndrasDeak picture. I see what you did there
 
hahaha
 
@AnderBiguri thanks for your "I'm solving a sudoku, but without any number filled in at the start" analogy. I used it to explain seismology to one of our geologists
 
hahaha I admit I nicked it from someone else
Federico, an Italian doing atmospheric tomography
 
12:48 PM
All science is just sudoku solving :D
 
 
1 hour later…
1:52 PM
that's a step up from stamp collecting
 
2:21 PM
Lol!
 
3:17 PM
@AnderBiguri eyy nice mate! That sounds like a blast :D
@Adriaan oh wow, I had no idea that Zoe ended up winning, I did vote for her. Neat
thats mod #2 I knew from java room lol
 
@ballBreaker how often did you get kicked there? ;P
 
hahahah hmmmm from the room? or suspended by mods/autoflag
I think none for the former and maybe 5 from the latter
 
I presume both to be in the natural number set, knowing you
 
ive somehow evaded being directly kicked from any rooms
oh god did I just jinx it
be gentle
 
@ballBreaker Nah, we'll just tie your shears together and boil you alive, moustache or no moustache
 
3:22 PM
believe it or not I've calmed down a lot in the past years haha, don't think I've been kicked/suspended in a few years now
@Adriaan hahahaha seems fair, just start the water cool so I don't notice
"ahh this is a nice bath, it's getting warmer, so comfy"
 
Won't you rather be dropped in boiling water? That way it'd hopefully numb your nerves quickly and kill you fast, rather than sitting for 15 minutes in slowly heating water
 
@Adriaan but this is how I shower
ΔT>30C
 
@AnderBiguri sure, but not T \in [30, 100) right
 
depends now long I stay XD
 
3:56 PM
hahaha
@Adriaan oh man I feel like that would be so much worse hahah
 
 
5 hours later…
9:00 PM
@AnderBiguri it feels like that mantis is in complete disbelief
 

« first day (2401 days earlier)      last day (821 days later) »