diff --git a/code/python/src/string_alignment/hirschberg.py b/code/python/src/string_alignment/hirschberg.py index 59eb3cf..c347789 100644 --- a/code/python/src/string_alignment/hirschberg.py +++ b/code/python/src/string_alignment/hirschberg.py @@ -444,8 +444,8 @@ def display_cost_matrix_halves( table_costs2, table_moves2 = represent_cost_matrix(Costs=Costs2, path=path2, X=X2, Y=Y2, pad=True); # merge Taellen: - table_costs = np.concatenate([table_costs1, table_costs2[::-1, ::-1]], axis=1); - table_moves = np.concatenate([table_moves1, table_moves2[::-1, ::-1]], axis=1); + table_costs = np.concatenate([table_costs1[:, :-1], table_costs2[::-1, ::-1]], axis=1); + table_moves = np.concatenate([table_moves1[:, :-1], table_moves2[::-1, ::-1]], axis=1); if just_moves: table = table_moves; else: