update TODO: value and rate updates are separate
@@ -69,16 +69,8 @@ class Constraints:
# At t=0.0, constrain all the boundary conditions (for compatability with
# initial conditions)
- # TODO: you may need to change naming of _callBC
self._constrain_values(time=0.0)
self._constrain_rates(time=0.0)
- # self._callBC(time=0.0)
-
- # # TODO: same as above naming of _callBC function
- # def _callBC(self, time, *args, **kwargs):
- # for sys_id, constraint in self._constraints:
- # constraint.constrain_values(self._systems[sys_id], time, *args, **kwargs)
- # constraint.constrain_rates(self._systems[sys_id], time, *args, **kwargs)
def _constrain_values(self, time, *args, **kwargs):
for sys_id, constraint in self._constraints:
