Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
dallan-keylogic committed Apr 10, 2024
1 parent 62a6346 commit 6a46229
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion idaes/core/util/model_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -3681,9 +3681,10 @@ def check_parallel_jacobian(model, tolerance: float = 1e-4, direction: str = "ro
diff = abs(abs(val) - norms[row] * norms[col])
if diff <= tolerance or diff <= tolerance * max(norms[row], norms[col]):
parallel.append((components[row], components[col]))

return parallel


def check_parallel_jacobian_old(model, tolerance: float = 1e-4, direction: str = "row"):
"""
Check for near-parallel rows or columns in the Jacobian.
Expand Down

0 comments on commit 6a46229

Please sign in to comment.