def LoadParameters(self, C):
s = 0
for jump in self.table:
if not jump.type is None:
if jump.params == 1 and jump.T != 0:
jump.a = np.append(jump.a, C[s:s + 1])
elif jump.params == 1 and jump.T == 0:
jump.b = np.append(jump.b, C[s:s + 1])
elif jump.params == 2:
jump.b = np.append(jump.b, C[s:s + 1])
jump.a = np.append(jump.a, C[s + 1:s + 2])
s = s + jump.params
评论列表
文章目录