Esempio n. 1
0
def test_sigma_f():
    E_g = np.array([10.0, 7.5, 5.0, 2.5, 0.1])
    sig_f = sigma_f('U238', group_struct=E_g)
    observed = (0.0 <= sig_f).all()
    assert_true(observed)

    sig_f = sigma_f('U238', group_struct=E_g)
    observed = (0.0 <= sig_f).all()
    assert_true(observed)

    sig_f = sigma_f('U235')
    observed = (0.0 <= sig_f).all()
    assert_true(observed)
Esempio n. 2
0
def test_sigma_f():
    E_g = np.array([10.0, 7.5, 5.0, 2.5, 0.1])
    sig_f = sigma_f("U238", group_struct=E_g)
    observed = (0.0 <= sig_f).all()
    assert_true(observed)

    sig_f = sigma_f("U238", group_struct=E_g)
    observed = (0.0 <= sig_f).all()
    assert_true(observed)

    sig_f = sigma_f("U235")
    observed = (0.0 <= sig_f).all()
    assert_true(observed)
Esempio n. 3
0
def test_sigma_f():
    E_g = np.array([10.0, 7.5, 5.0, 2.5, 0.1])
    E_n = xs_cache['E_n']
    phi_n = np.ones(len(E_n) - 1)

    sig_f = sigma_f('U238', E_g, E_n, phi_n)
    observed = (0.0 <= sig_f).all()
    assert_true(observed)

    sig_f = sigma_f('U238', E_g, E_n, phi_n)
    observed = (0.0 <= sig_f).all()
    assert_true(observed)

    sig_f = sigma_f('U235')
    observed = (0.0 <= sig_f).all()
    assert_true(observed)