Saturday 13 July 2013

PyConAU 2013

Thankfully I managed to get back to PyConAU this year, and again it was an absolutely fantastic conference. The organising committee really have done an amazing job. If you're looking for a detailed break-down of highlights from the conference, I recommend you check out Graeme Cross's post on his blog Curious Venn. One thing that surprised (and pleased) me was a profound sense of social responsibility that many people in the Python community are feeling.

This year I spoke on Managing scientific simulations with Python with RQ (Redis Queue). The talk was recorded, and you can find it (and the rest of the PyConAU talks) at PyVideo, or on the PyConAU YouTube channel

If you're interested in Redis-Queue, I recommend you have a look at the website and github repository.

Sunday 6 January 2013

Generating n-dimensional graphs

The python networkx package has great support for a whole range of graphs that appear in common situations. One thing that pops up occasionally is the need for slightly more sophisticated lattices (grid graphs) than what are available.

For example, when you're modelling a discrete approximation to position and heading in two dimensions - position should not wrap, but the heading should.

So this is my code to generate an n-dimensional grid graph, which allows each dimension to be periodic independently.