various fixes and improvements

This commit is contained in:
Jan Petykiewicz 2019-08-05 00:20:06 -07:00
commit 5951f2bdb1
8 changed files with 40 additions and 54 deletions

View file

@ -9,6 +9,7 @@ from meanas import fdtd
prng = numpy.random.RandomState(12345)
def assert_fields_close(a, b, *args, **kwargs):
numpy.testing.assert_allclose(a, b, verbose=False, err_msg='Fields did not match:\n{}\n{}'.format(numpy.rollaxis(a, -1),
numpy.rollaxis(b, -1)), *args, **kwargs)