def test_special_branches(): special_branches = {(320770001, 320770000): 0.19, (360850001, 360850000): 0.212, (451040000, 441040000): 0.0045, (451040000, 461040000): 0.9955, (461110001, 461110000): 0.73, (471100001, 471100000): 0.0133, (491190001, 491190000): 0.044, (511260001, 511260000): 0.14, (521270000, 531270000): 1.0, (521290001, 531290000): 0.36, (711770001, 711770000): 0.214, (842110001, 842110000): 0.00016} for item in special_branches: assert_equal(data.decay_branch_ratio(nucname.id_to_state_id(item[0]), nucname.id_to_state_id(item[1]))[0], special_branches[item])
def test_special_children(): special_children = { 451040000: set([441040000, 461040000]), 521270000: set([531270000]) } for item in special_children: assert_equal( set(data.decay_data_children(nucname.id_to_state_id(item))), special_children[item])
def test_id_to_state_id(): assert_equal(nucname.id_to_state_id(190380002), 190380015)
def test_id_to_state_id(): assert_equal(nucname.id_to_state_id(190380002), 190380015) assert_equal(nucname.id_to_state_id(270590001), None) # Co59M doesn't exist
def test_special_children(): special_children = {451040000: set([441040000, 461040000]), 521270000: set([531270000])} for item in special_children: assert_equal(set(data.decay_data_children(nucname.id_to_state_id(item))), special_children[item])