Skip to content

Commit

Permalink
Fixing typo and condition number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee94 committed Aug 17, 2023
1 parent 8faa222 commit 749f6fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions idaes/core/util/model_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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="="
Expand Down

0 comments on commit 749f6fe

Please sign in to comment.