OCP.number_parameter_variables
|
@property |
|
def number_parameter_variables(self): |
|
len(self._s_var_user) |
Problem
There is no return function and the ._s_var_user is always an NamedTuple.
Solution
- Get rid of whole property
- Change to:
return self._s_var_user.len()
OCP.number_parameter_variables
pycollo/pycollo/optimal_control_problem.py
Lines 219 to 221 in 5d3b554
Problem
There is no return function and the ._s_var_user is always an NamedTuple.
Solution
return self._s_var_user.len()