Esempio n. 1
0
def add_child_decays(nuc, symbols):
    try:
        childname = nucname.name(nuc)
    except RuntimeError:
        return
    for rx in DECAY_RXS:
        try:
            parent = rxname.parent(nuc, rx, b'decay')
        except RuntimeError:
            continue
        if data.branch_ratio(parent, nuc) < 1e-16:
            continue
        parname = nucname.name(parent)
        symbols['lambda_' + parname] = data.decay_const(parent)
        gamma = 'gamma_{0}_{1}_{2}'.format(parname, childname, rx)
        symbols[gamma] = data.branch_ratio(parent, nuc)
Esempio n. 2
0
def add_child_xss(nuc, channels, parents):
    try:
        childname = nucname.name(nuc)
    except RuntimeError:
        return
    channels[childname] = rxs = {}
    for rx in XS_RXS:
        try:
            parent = rxname.parent(nuc, rx)
        except RuntimeError:
            continue
        if parent not in parents:
            continue
        try:
            parname = nucname.name(parent)
        except RuntimeError:
            continue
        rxs[rx] = parname
Esempio n. 3
0
def test_parent():
    assert_equal(rxname.parent("U235", "absorption"), 922340000)
    assert_equal(rxname.parent(922350000, "absorption"), 922340000)
Esempio n. 4
0
def test_parent():
    assert_equal(rxname.parent("U235", "absorption"), 922340000)
    assert_equal(rxname.parent(922350000, "absorption"), 922340000)