Exemple #1
0
 def test_3_1(self):
     "test calA0 from simulation.py"
     result = self.rs.calA0()
     expectResult = 24.0
     isTrue = expectResult - result < 0.0001
     self.assertTrue(isTrue,"calA0")
     self.rs.doReaction(1)
     self.rs.doSimulation()
     self.rs.form_result()
     self.rs.getProcess()
     getPartNameAndType("603")
     getMarkovRecommend("603")
     getPart("BBa_C0062")
     #ambiguousSearch("603",None)
     get_func_parts([1,2,3])
Exemple #2
0
def adjuct_to_func(funcStr, dictionary_result):
    if funcStr.startswith('_'):
        funcStr = funcStr[1:]
    if funcStr.endswith('_'):
        funcStr = funcStr[:-1]
    func_part_list = get_func_parts(funcStr.split('_'))
    for key in dictionary_result:
        if long(key) in func_part_list:
            dictionary_result[key] += 10
Exemple #3
0
def adjuct_to_func(funcStr, dictionary_result):
    if funcStr.startswith('_'):
        funcStr = funcStr[1:]
    if funcStr.endswith('_'):
        funcStr = funcStr[:-1]
    func_part_list = get_func_parts(funcStr.split('_'))
    for key in dictionary_result:
        if long(key) in func_part_list:
            dictionary_result[key] += 10