I stupidly commented out a very important line of code. I’m not sure why the unit tests still passed. That’s not good.
This is the fully functional Poincare Wave code.