various fixes and improvements
This commit is contained in:
parent
94ff3f7853
commit
5951f2bdb1
8 changed files with 40 additions and 54 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue