File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,9 +122,9 @@ def get_data(self, data_path: str) -> pd.DataFrame:
122
122
123
123
def sim_step (self , step_idx : int ) -> None :
124
124
pred = self .sim_model .get_current_lataccel (
125
- sim_states = self .state_history [max ( 0 , step_idx - CONTEXT_LENGTH ): step_idx ],
126
- actions = self .action_history [max ( 0 , step_idx - CONTEXT_LENGTH ): step_idx ],
127
- past_preds = self .current_lataccel_history [max ( 0 , step_idx - CONTEXT_LENGTH ): step_idx ]
125
+ sim_states = self .state_history [- CONTEXT_LENGTH : ],
126
+ actions = self .action_history [- CONTEXT_LENGTH : ],
127
+ past_preds = self .current_lataccel_history [- CONTEXT_LENGTH : ]
128
128
)
129
129
pred = np .clip (pred , self .current_lataccel - MAX_ACC_DELTA , self .current_lataccel + MAX_ACC_DELTA )
130
130
if step_idx >= CONTROL_START_IDX :
You can’t perform that action at this time.
0 commit comments