From 749f6feecd5d290872b21e9c2b71d52e90c78935 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 17 Aug 2023 17:07:48 -0400 Subject: [PATCH] Fixing typo and condition number formatting --- idaes/core/util/model_diagnostics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idaes/core/util/model_diagnostics.py b/idaes/core/util/model_diagnostics.py index 85330edf7d..75f175e3cd 100644 --- a/idaes/core/util/model_diagnostics.py +++ b/idaes/core/util/model_diagnostics.py @@ -593,7 +593,7 @@ def display_constraints_with_extreme_jacobians(self, stream=stdout): footer="=", ) - def display_extreme_jacobians_entries(self, stream=stdout): + def display_extreme_jacobian_entries(self, stream=stdout): """ Prints variables and constraints associated with entries in the Jacobian with extreme values. This can be indicative of poor scaling, especially for isolated terms (e.g. @@ -971,7 +971,7 @@ def report_numerical_issues(self, stream=stdout): stats = [] stats.append( - f"Jacobian Condition Number: {jacobian_cond(jac=jac, scaled=False)}" + f"Jacobian Condition Number: {jacobian_cond(jac=jac, scaled=False):.3E}" ) _write_report_section( stream=stream, lines_list=stats, title="Model Statistics", header="="