Code

  1. in Code

    Faster numerical integration in SciPy

    I was keen to help a colleague accelerate their numerical integrations, while keeping the project as high-level and pythonic as possible. This article (and the associated GitLab repository) is the result of my constructing a minimal working example to do numerical integration in SciPy with the integrand specified in a compiled Cython function.

    Read more...

  2. in Code

    A small trick to distributed paper writing with [pdf]latex and git

    With most of my collaborators, we use git for version control of draft papers, written in latex. I usually bundle a makefile in the git repo to check for unresolved references and rerun [pdf]latex if necessary. In this post I will discuss how to use low-level git commands to embed useful information into the generated PDF.

    Read more...

  3. in Code

    PySpark for HPC: some success but a work in progress

    Recently, I published the paper Revisiting the envelope approximation: gravitational waves from bubble collisions. This work compares two methods for computing the gravitational wave power spectrum from colliding bubbles from a phase transition in the early universe. It turned out to be an ideal example of a physics simulation in which the MapReduce algorithm can be applied.

    Read more...