File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/gh/diffCheck/diffCheck Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ def add_step(self, new_poses: list[DFPose]):
53
53
for i , pose in enumerate (new_poses ):
54
54
if f"element_{ i } " not in self .poses_per_element_dictionary :
55
55
self .poses_per_element_dictionary [f"element_{ i } " ] = DFPosesBeam ({}, 4 )
56
- self .poses_per_element_dictionary [f"element_{ i } " ].add_pose (pose , self .n_step + 1 )
56
+ for j in range (self .n_step ):
57
+ self .poses_per_element_dictionary [f"element_{ i } " ].add_pose (None , j )
58
+ self .poses_per_element_dictionary [f"element_{ i } " ].add_pose (pose , self .n_step )
57
59
self .n_step += 1
58
60
59
61
def get_last_poses (self ):
@@ -64,7 +66,7 @@ def get_last_poses(self):
64
66
return None
65
67
last_poses = []
66
68
for i in range (len (self .poses_per_element_dictionary )):
67
- last_poses .append (self .poses_per_element_dictionary [f"element_{ i } " ].poses_dictionnary [f"pose_{ self .n_step } " ])
69
+ last_poses .append (self .poses_per_element_dictionary [f"element_{ i } " ].poses_dictionnary [f"pose_{ self .n_step - 1 } " ])
68
70
return last_poses
69
71
70
72
def reset (self ):
You can’t perform that action at this time.
0 commit comments