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_coherent(): assert_equal(data.b_coherent('H1'), -3.7406E-13 + 0j) assert_equal(data.b_coherent(491150), 4.01E-13 - 5.62E-15j)
def test_b_coherent(): assert_equal(data.b_coherent("H1"), -3.7406e-13 + 0j) assert_equal(data.b_coherent(491150), 4.01e-13 - 5.62e-15j)
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))