You only need to import the modules you are using directly.
so, importing C into B and importing B into A doesn't automagically import C into A, but you don't need to since A doesn't call any functions or use any classes in C.
Basically, Wolfram has a way of organizing a certain type of cellular automata (this is called Wolfram's rule 34). Randall was calling rule 34 on that, meaning that there had to be some sort of p0rn based off of that
It's a pretty lame first patch I'm afraid ... and it will probably get rejected anyway
Nope. Just documentation.
the online documentation for collections.Counter.most_common doesn't mention the fact that n can be None.
But the docstring does.
This is what happens when I try to go back through my old code and figure it out. I documented the None thing in my code, but then I couldn't find it in the online documentation so I started to wonder where I got the idea ...
I suppose I probably shouldn't claim to have contributed a patch to python. More just the python documentation.
Congrats! I've had a few accepted myself: mostly docs, and those mostly typo fixes, although a few bugs. One was a use of list as a variable name (!) which broke a flatten routine. Another was a refcount error in an incredibly obscure code path. So nothing substantial.
But more than that, sphinx supports cross references
Which I really loved when I first started using it. The ability to jump around to exactly where I needed was awesome.
The problem is that sphinx autodoc requires that the module be imported which can be a problem since we have so much code and it's all so inter-dependent and dependent on C code, etc.
@mgilson Ahh, so you're an awesome dad and husband too! :D No trouble, just bring them over to stackoverflow, we'll indoctrinate them into learning python, unless you've already done that :P
Right now, loads of people are moving from python to nodejs, simply because its faster for them. Things like blogs and newspaper sites are moving to nodejs.
Also part of the problem with fortran is the people who write fortran ;-). A lot of them wrote code back before good coding standards were introduced...
Or they're scientists who write in fortran because it's fast.
Fortran's still the language of choice in some physics circles, although c++ has been supplanting it recently as it's a little easier to work with some of the newer parallel & gpu tech.
@AshwiniChaudhary I don't know why people use django for REST. Do you already have a django site? I mean there are many faster alternatives for making APIs.
the prof of one of the courses (combinatorial algorithms) I took in my masters happened to have gotten her PhD from the same university where I did my undergrad. She was incidentally also the chair of my master's defence. So we became fairly good friends over time.
When I ran into her one day (after I started my PhD), she told me: "when you think you know everything, they give you a bachelor's degree. When you realize you know nothing, they give you a master's degree. When you realize your supervisor knows nothing, they give you a PhD"
The basic idea that I demonstrated was that by looking at the proton aurora, you could infer something about the time-dependent geometry of the earth's magnetic field.
@inspectorG4dget -- That's more or less correct. It does lose energy due to collisions with other particles, but that's not exactly what causes the light to emit.
then, based on the diffusion pattern of that energy (since it's electromagnetic in nature), you can deduce what EM fields are about, such as the EM field of the earth. This was exactly what @mgilson did for his thesis (what I said is a really dumbed down version)
That's not an "energetically favorable" place for it to be.
So it drops down to a lower energy level (this is all chemistry stuff). When it drops to a lower energy level, it needs to get rid of the excess energy somehow ... which is where the light comes from.
The ionosphere and everything above it are different types of plasmas, yes.
It tells you where the magnetic field conditions (geometry) are favorable for altering the proton trajectories so that they can actually make it to the ionosphere.
btw @mgilson, I'm very familiar with peoples' tendencies to google the basics about a field and think they know everything about it, despite the fact that it's been under active research for far too long (#phdwoes). So when I said "I just googled it", that's not what I was doing. I was just trying to get a basic understanding so that I could understand what you were going to say next
I was helping out a friend, talking him over the phone, through logging into his email. I said "click that button on the top left" and he says "wait, your left, or mine?". How did he know which way I was facing?! o.O
@mgilson going back to proton auroras, you can compute the shape and the intensity (to some extent) of the earth's magnetic field. How does this help you understand substorms?
Yeah ... But, when it gets into the inner magnetosphere (the rounded lines) it can't get in any further so it deflects up and down and follows those lines to the poles
@mgilson Wait, so you mean to tell me the beautiful auroras are happening because of super heated proton goo bouncing up and down in different layers of the atmosphere?
And the really cool "discrete" arcs are accelerated further by near earth electric fields (which I don't understand)
But the point is that the geometry is key to understanding where the rubber band is going to be released.
It's also the key to being able to figure out how to connect what we see in the aurora with what our satellites are measuring.
Drawing those connections is really tough, so it's hard to definitively say that this thing that we measured our our spacecraft caused this thing that we saw in the aurora.