Skip to content

Commit

Permalink
Fix inconsistent field naming
Browse files Browse the repository at this point in the history
  • Loading branch information
schlagenhauf committed Aug 14, 2020
1 parent 99aa980 commit 6966188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocp_modules/controllers/RtiNmpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def get_metadata(self) -> xr.Dataset:
solution_control_data[:,:,i] = np.reshape(res['x'][-self.NU * self.M:], (self.NU, self.M), order='F')

meta['solution_states'] = xr.DataArray(solution_state_data, dims=('state', 'control_state_horizon', 'control_step'))
meta['solution_controls'] = xr.DataArray(solution_control_data, dims=('controls', 'control_action_horizon', 'control_step'))
meta['solution_controls'] = xr.DataArray(solution_control_data, dims=('control', 'control_action_horizon', 'control_step'))

# here one could also add lagrange multipliers to the dataset
meta['computation_times'] = xr.DataArray(self.durations, dims=('control_step'))
Expand Down

0 comments on commit 6966188

Please sign in to comment.