@@ -93,7 +93,7 @@ class NonlinearIOSystem(InputOutputSystem):
9393 generic name <sys[id]> is generated with a unique integer id.
9494
9595 params : dict, optional
96- Parameter values for the system. Passed to the evaluation functions
96+ Parameter values for the system. Passed to the evaluation functions
9797 for the system as default values, overriding internal defaults.
9898
9999 See Also
@@ -1671,7 +1671,7 @@ def ivp_rhs(t, x):
16711671 success = soln .success , message = message )
16721672
16731673
1674- class OperatingPoint (object ):
1674+ class OperatingPoint ():
16751675 """A class for representing the operating point of a nonlinear I/O system.
16761676
16771677 The ``OperatingPoint`` class stores the operating point of a nonlinear
@@ -1693,18 +1693,18 @@ class OperatingPoint(object):
16931693
16941694 """
16951695 def __init__ (
1696- self , states , inputs = None , outputs = None , result = None ,
1696+ self , states , inputs , outputs = None , result = None ,
16971697 return_outputs = False , return_result = False ):
16981698 self .states = states
16991699 self .inputs = inputs
17001700
17011701 if outputs is None and return_outputs and not return_result :
1702- raise SystemError ("return_outputs specified by no y0 value" )
1702+ raise ValueError ("return_outputs specified but no outputs value" )
17031703 self .outputs = outputs
17041704 self .return_outputs = return_outputs
17051705
17061706 if result is None and return_result :
1707- raise SystemError ("return_result specified by no result value" )
1707+ raise ValueError ("return_result specified but no result value" )
17081708 self .result = result
17091709 self .return_result = return_result
17101710
@@ -1799,7 +1799,7 @@ def find_operating_point(
17991799 values will be ignored in solving for an operating point. State
18001800 indices can be listed in any order. By default, all updates will be
18011801 fixed at `dx0` in searching for an operating point.
1802- root_method : str, optonal
1802+ root_method : str, optional
18031803 Method to find the operating point. If specified, this parameter
18041804 is passed to the :func:`scipy.optimize.root` function.
18051805 root_kwargs : dict, optional
0 commit comments