Skip to content

Commit

Permalink
Only remove time from parameters if present.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed May 11, 2024
1 parent 8d07245 commit 006bc88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opty/direct_collocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,8 @@ def _sort_parameters(self):
The unknown parameters are sorted by name."""

parameters = self.eom.free_symbols.copy()
parameters.remove(self.time_symbol)
if self.time_symbol in parameters:
parameters.remove(self.time_symbol)

res = self._parse_inputs(parameters,
self.known_parameter_map.keys())
Expand Down

0 comments on commit 006bc88

Please sign in to comment.