Skip to content

Commit 1120b14

Browse files
committed
Better ignoring of warnings
1 parent 8d638cc commit 1120b14

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/OnlineDocs/explanation/analysis/parmest/covariance.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ the :class:`~pyomo.contrib.parmest.parmest.Estimator.cov_est` function, e.g.,
105105

106106
>>> import pyomo.contrib.parmest.parmest as parmest
107107
>>> pest = parmest.Estimator(exp_list, obj_function="SSE")
108-
>>> obj_val, theta_val = pest.theta_est() # doctest: +IGNORE_WARNINGS
108+
>>> obj_val, theta_val = pest.theta_est()
109+
WARNING: DEPRECATED: ...
109110
>>> cov = pest.cov_est()
110111

111112
Optionally, one of the three methods; "reduced_hessian", "finite_difference",
@@ -116,6 +117,7 @@ e.g.,
116117
:skipif: not __import__('pyomo.contrib.parmest.parmest').contrib.parmest.parmest.parmest_available
117118

118119
>>> pest = parmest.Estimator(exp_list, obj_function="SSE")
119-
>>> obj_val, theta_val = pest.theta_est() # doctest: +IGNORE_WARNINGS
120+
>>> obj_val, theta_val = pest.theta_est()
121+
WARNING: DEPRECATED: ...
120122
>>> cov_method = "reduced_hessian"
121123
>>> cov = pest.cov_est(method=cov_method)

doc/OnlineDocs/explanation/analysis/parmest/datarec.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ The following example returns model values from a Pyomo Expression.
5151

5252
>>> pest = parmest.Estimator(exp_list, obj_function=SSE, solver_options=None)
5353
>>> obj, theta, var_values = pest.theta_est(return_values=['response_function'])
54+
WARNING: DEPRECATED: ...
5455
>>> #print(var_values)

0 commit comments

Comments
 (0)