def _compare_dipoles(orig, new):
 assert_allclose(orig.times, new.times, atol=0.001, err_msg='times')
 assert_allclose(orig.pos, new.pos, err_msg='pos')
 assert_allclose(orig.amplitude, new.amplitude, err_msg='amplitude')
 assert_allclose(orig.gof, new.gof, err_msg='gof')
 assert_allclose(orig.ori, new.ori, rtol=0.0001, atol=0.0001, err_msg='ori')
 assert_equal(orig.name, new.name)

def _compare_dipoles ( orig , new ) : assert_allclose ( orig . times , new . times , atol = 0.001 , err_msg = 'times' ) assert_allclose ( orig . pos , new . pos , err_msg = 'pos' ) assert_allclose ( orig . amplitude , new . amplitude , err_msg = 'amplitude' ) assert_allclose ( orig . gof , new . gof , err_msg = 'gof' ) assert_allclose ( orig . ori , new . ori , rtol = 0.0001 , atol = 0.0001 , err_msg = 'ori' ) assert_equal ( orig . name , new . name )
compare dipole results for equivalence .