!hkWCiyhQyxiYJlUtKF:matrix.org

PlasmaPy

118 Members
Main room for PlasmaPy, the open-source plasma physics Python library4 Servers

Load older messages


Timestamp Message
3 Dec 2019
18:53:13@SolarDrew:matrix.orgSolarDrewI'm afraid I may have to skip it again this week
18:53:47@SolarDrew:matrix.orgSolarDrew I need to clean the fish tank, which I realise is not a great excuse but I just haven't had the time recently and it really needs doing
18:54:21@namurphy:matrix.orgNick MurphyNo worries! I'm sure the fish will really appreciate it.
18:55:18@namurphy:matrix.orgNick MurphyIn any case I'm behind on all things PlasmaPy because of having to finish up a review article I'm co-authoring that is due on September 30, 2019.
18:55:47@SolarDrew:matrix.orgSolarDrewlol
18:57:32@StanczakDominik:matrix.orgDominik Stańczakforgot as well! >_< I'm here though
18:57:37@StanczakDominik:matrix.orgDominik Stańczak * forgot as well! >_< I'm here though
18:58:55@StanczakDominik:matrix.orgDominik Stańczak this agenda link could come in handy
19:45:25@namurphy:matrix.orgNick MurphyMy internet connection got grumpy for a few minutes but I think the meeting may have ended. Oops!
19:46:54@StanczakDominik:matrix.orgDominik StańczakYour connection status was green, we assumed you were in ninja mode due to some interruption or another
19:47:27@StanczakDominik:matrix.orgDominik StańczakBut yeah, not much more to discuss atm
19:47:40@StanczakDominik:matrix.orgDominik StańczakI'll try to wrap some prs up over the weekend
5 Dec 2019
19:36:38@namurphy:matrix.orgNick Murphy Something I didn't know before now but is really cool: functools.partial
19:37:50@namurphy:matrix.orgNick Murphy If you have a function for which you always want some of the args or kwargs to be specific values, then functools.partial will create a new function that freezes in the values that you provided for the args and kwargs
19:42:05@StanczakDominik:matrix.orgDominik StańczakYeah, it's handy
9 Dec 2019
16:07:59@StanczakDominik:matrix.orgDominik StańczakApologies, but I will have to skip tomorrow's meeting due to the usual subjects of past procrastination and impending deadlines :(
10 Dec 2019
08:51:29@ghost31415:matrix.org@ghost31415:matrix.org left the room.
17:04:41@abhijeetmanhas:matrix.orgabhijeetmanhas joined the room.
17:07:00@emansky:matrix.orgemansky joined the room.
18:36:08@namurphy:matrix.orgNick MurphyI know the feeling! No worries whatsoever, and we'll do our best to take notes.
18:38:36@namurphy:matrix.orgNick Murphy A friendly reminder that we'll have our next community meeting in about 20 minutes at 19 UTC on PlasmaPy's Jitsi channel. Please feel free to edit our agenda and minutes.
20:57:10@namurphy:matrix.orgNick MurphyWe'll have a community meeting next week at the usual time (Tuesday @ 19 UTC) but then take the following two weeks off since a lot of people will be on vacation
11 Dec 2019
23:38:17@namurphy:matrix.orgNick Murphy
In [1]: def f(x=[]): 
   ...:     x.append(1) 
   ...:     print(x) 
   ...:                                                                                                                        

In [2]: f()                                                                                                                    
[1]

In [3]: f()                                                                                                                    
[1, 1]

In [4]: f()                                                                                                                    
[1, 1, 1]
23:42:50@namurphy:matrix.orgNick MurphyTurns out that if you set the default for an argument to be a mutable object, and then you change it, then it will remain changed in future function calls. The reason (if I remember from what I read yesterday) is that the object is created only once, when the function is declared, so changes to that object persist.
23:45:33@namurphy:matrix.orgNick Murphy The moral of the story is that we should not have lists or dictionaries as the default for a keyword argument. It's better to have the default be perhaps None, and then create a list or dictionary inside the function.
23:50:44@rocco8773:matrix.orgrocco8773 Make sense, even though this would not have naturally occurred to me. It's a good thing I've always preferred None, since None is more explicit/literal. Literally, nothing has been passed into the function.
12 Dec 2019
10:54:14@StanczakDominik:matrix.orgDominik Stańczakyup
10:57:24@StanczakDominik:matrix.orgDominik Stańczakh5py wheels for 3.8 are out, and so we are green on 3.8 tests (check master)!
17:17:49@namurphy:matrix.orgNick MurphyAwesome! I love it when things get fixed without having to do anything. 😺
19:31:16@jvpy:matrix.orgjvpy joined the room.

There are no newer messages yet.


Back to Room List