@@ -93,7 +93,7 @@ class NonlinearIOSystem(InputOutputSystem):
93
93
generic name <sys[id]> is generated with a unique integer id.
94
94
95
95
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
97
97
for the system as default values, overriding internal defaults.
98
98
99
99
See Also
@@ -1671,7 +1671,7 @@ def ivp_rhs(t, x):
1671
1671
success = soln .success , message = message )
1672
1672
1673
1673
1674
- class OperatingPoint (object ):
1674
+ class OperatingPoint ():
1675
1675
"""A class for representing the operating point of a nonlinear I/O system.
1676
1676
1677
1677
The ``OperatingPoint`` class stores the operating point of a nonlinear
@@ -1693,18 +1693,18 @@ class OperatingPoint(object):
1693
1693
1694
1694
"""
1695
1695
def __init__ (
1696
- self , states , inputs = None , outputs = None , result = None ,
1696
+ self , states , inputs , outputs = None , result = None ,
1697
1697
return_outputs = False , return_result = False ):
1698
1698
self .states = states
1699
1699
self .inputs = inputs
1700
1700
1701
1701
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" )
1703
1703
self .outputs = outputs
1704
1704
self .return_outputs = return_outputs
1705
1705
1706
1706
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" )
1708
1708
self .result = result
1709
1709
self .return_result = return_result
1710
1710
@@ -1799,7 +1799,7 @@ def find_operating_point(
1799
1799
values will be ignored in solving for an operating point. State
1800
1800
indices can be listed in any order. By default, all updates will be
1801
1801
fixed at `dx0` in searching for an operating point.
1802
- root_method : str, optonal
1802
+ root_method : str, optional
1803
1803
Method to find the operating point. If specified, this parameter
1804
1804
is passed to the :func:`scipy.optimize.root` function.
1805
1805
root_kwargs : dict, optional
0 commit comments