Skip to content

Commit 578547e

Browse files
committed
Fix wrong error message in nonlinear controller
Replace `self.y_s.shape` with `self.y_r.shape` in the `ValueError` message of the `set_output_setpoint` method, as it was a typo.
1 parent a347a3d commit 578547e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

direct_data_driven_mpc/nonlinear_data_driven_mpc_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ def set_output_setpoint(self, y_r: np.ndarray) -> None:
13851385
if y_r.shape != self.y_r.shape:
13861386
raise ValueError(
13871387
"Incorrect dimensions. `y_r` must have shape "
1388-
f"{self.y_s.shape}, but got {y_r.shape} instead."
1388+
f"{self.y_r.shape}, but got {y_r.shape} instead."
13891389
)
13901390

13911391
# Update output setpoint and its parameter value

0 commit comments

Comments
 (0)