Actually fixed the assertion error bug.  It had to do with obsgammasum having dimensions [TNS][TNO] whereas it should have been [TNA][TNO].