Skip to content

Commit

Permalink
Fix #83
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix-Mac committed Sep 8, 2021
1 parent 053cbff commit e454f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion do_mpc/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _check_validity(self):
raise Exception('You have not supplied a function to obtain the time-varying parameters defined in model. Use .set_tvp_fun() prior to setup.')
# p_fun must be set, if p are defined in model.
if self.flags['set_p_fun'] == False and self.model._p.size > 0:
raise Exception('You have not supplied a function to obtain the parameters defined in model. Use .set_p_fun() (low-level API) or .set_uncertainty_values() (high-level API) prior to setup.')
raise Exception('You have not supplied a function to obtain the parameters defined in model. Use .set_p_fun() prior to setup.')

# Set dummy functions for tvp and p in case these parameters are unused.
if not self.flags['set_tvp_fun']:
Expand Down

0 comments on commit e454f2e

Please sign in to comment.