def test_b(): bc = data.b_coherent(621490) bi = data.b_incoherent('SM149') assert_equal(data.b('SM149'), math.sqrt(abs(bc)**2 + abs(bi)**2))
def test_b(): bc = data.b_coherent(621490) bi = data.b_incoherent('SM149') assert_equal(data.b('SM149'), math.sqrt(abs(bc) ** 2 + abs(bi) ** 2))