Two small things in this PR:
First off, in Python you don't need to reference all axes in an array when doing array slicing. Unlike in Matlab, A[1,:,:] is equivalent to A[1].
Second thing in this PR is formatting using the Black formatter. I'm in the habit of formatting code automatically, and realised that it was making future PRs very noisy as the git diff would show changes across functions that I hadn't changed, but had formatted.
Hi Hamish,
Two small things in this PR: First off, in Python you don't need to reference all axes in an array when doing array slicing. Unlike in Matlab, A[1,:,:] is equivalent to A[1].
As an example:
Second thing in this PR is formatting using the Black formatter. I'm in the habit of formatting code automatically, and realised that it was making future PRs very noisy as the
git diff
would show changes across functions that I hadn't changed, but had formatted.