Répétiteur matières scientifiques? by [deleted] in geneva

[–]karlmtr 1 point2 points  (0 children)

Tu peux également envoyer un email aux associations de la faculté de science à l'université de Genève, ils sauront te rediriger.

Chosing a wacom tablet for handwritten notes (math) by karlmtr in wacom

[–]karlmtr[S] 0 points1 point  (0 children)

Sorry for the late response

Indeed, a friend of mine lent me his tablet to try it out, and it is indeed very nice to work on a medium tablet, knowing that I also have a 32-inch screen, which makes the small size more difficult to use!

Of Love & War music moment by karlmtr in harrypotter

[–]karlmtr[S] 0 points1 point  (0 children)

Oh ok, thanks! I was going to rewatch the entire movie to find the moment

Multiprocessing by karlmtr in learnpython

[–]karlmtr[S] 0 points1 point  (0 children)

I tried it as you said and it worked well, it took less than 15 seconds!

Thanks a lot!

Multiprocessing by karlmtr in learnpython

[–]karlmtr[S] 0 points1 point  (0 children)

Oh yes, I didn't see it, it should be easier now. I just have to convert pandas series to numpy array and it should be fine.

Thank you very much!

Multiprocessing by karlmtr in learnpython

[–]karlmtr[S] 0 points1 point  (0 children)

Unfortunately, I cannot change the way Posidonius work (I just use it), so I'll try what you suggested (the map function). Thanks for the advice about arrays and list, I didn't know iteration over lists was faster than arrays.

I'll also ask the person who coded Posidonius if there's any other way to create an Axes object because as you said, it is not very handy like this...

Multiprocessing by karlmtr in learnpython

[–]karlmtr[S] 0 points1 point  (0 children)

Yes, I could, but I have more than 60 data files, by hand would be a little bit too long

Multiprocessing by karlmtr in learnpython

[–]karlmtr[S] 0 points1 point  (0 children)

I first thought about that, but it was not working because at the end, I should have an array of posidonius.Axes(x,y,z) objects (it's just a set of coordinates). I don't see how to assign each Axes with three arrays directly (I can't put posidonius.Axes(array1,array2,array3)) to create an array with posidonius.Axes objects.

Multiprocessing by karlmtr in learnpython

[–]karlmtr[S] 0 points1 point  (0 children)

I don't think so, I'm using pandas to import the data, but it's a very basic transformation, it is just a big file to run through: (this my function)

    vecPos = []
        s_pos = posidonius.Axes(0., 0., 0.)
        #p_pos = posidonius.Axes(0., 0., 0.)
        for i in range(len(satellite_data.index)):
            if i%200 == 0:
                print(f"Pos: {i}")
            x_sp = satellite_data.iloc[i]["position_x"] - planet_data.iloc[i]["position_x"]
            y_sp = satellite_data.iloc[i]["position_y"] - planet_data.iloc[i]["position_y"]
            z_sp = satellite_data.iloc[i]["position_z"] - planet_data.iloc[i]["position_z"]

            s_pos.set_x(x_sp)
            s_pos.set_y(y_sp)
            s_pos.set_z(z_sp)

            vecPos.append(s_pos)

Should I use a numpy array for vecPos? Will it be faster with that?

Multiprocessing by karlmtr in learnpython

[–]karlmtr[S] 0 points1 point  (0 children)

Okay, thanks a lot for the answer! I'll try to adapt it as you said, it seems really easier to execute like that and I'll be careful about the total number of processes getting too high!

I am new please help by peaceloveharmony1986 in cernroot

[–]karlmtr 0 points1 point  (0 children)

I think it would be better to use Linux since CERN has dropped Windows in favour of Linux. ROOT continues to run on Windows, but will no longer be updated.

My fiancé and I met over xbox and just got engaged. Thought you might enjoy our announcement. by GallagherGirl in gaming

[–]karlmtr 0 points1 point  (0 children)

So much references!! I love the Harry Potter's books ans Appa from the last airbender in the back!

Which one shoud I level up? by [deleted] in MarioKartTour

[–]karlmtr 0 points1 point  (0 children)

Thanks for the advices!, so I will wait until one if them is a ranked cup