Skip to content

Commit a347a3d

Browse files
committed
Fix docstring typo and remove comment in LTI controller
- Rename `y_r_param` to `y_s_param` in the docstring of the `set_input_output_setpoints` method, as it was a typo. - Remove leftover comment.
1 parent 4604eea commit a347a3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

direct_data_driven_mpc/lti_data_driven_mpc_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,15 +1097,15 @@ def set_input_output_setpoints(
10971097
Note:
10981098
This method sets the values of the `u_s` and `y_s` attributes with
10991099
the provided new setpoints and updates the values of `u_s_param`
1100-
and `y_r_param` to update the data-driven MPC controller setpoint.
1100+
and `y_s_param` to update the data-driven MPC controller setpoint.
11011101
"""
11021102
# Validate input types and dimensions
11031103
if u_s.shape != self.u_s.shape:
11041104
raise ValueError(
11051105
"Incorrect dimensions. `u_s` must have shape "
11061106
f"{self.u_s.shape}, but got {u_s.shape} instead."
11071107
)
1108-
if y_s.shape != self.y_s.shape: # Replace with actual expected shape
1108+
if y_s.shape != self.y_s.shape:
11091109
raise ValueError(
11101110
"Incorrect dimensions. `y_s` must have shape "
11111111
f"{self.y_s.shape}, but got {y_s.shape} instead."

0 commit comments

Comments
 (0)