Skip to content

Commit

Permalink
fixing another test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlee94 committed Oct 8, 2024
1 parent 9f89c8c commit 9fe7e73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions idaes/models/unit_models/tests/test_gibbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,8 @@ def test_solve_temperature(self, methane):

@pytest.mark.solver
@pytest.mark.skipif(solver is None, reason="Solver not available")
@pytest.mark.integration
@pytest.mark.component
def test_verify_scaling_temperature(self, methane):
print(jacobian_cond(methane, scaled=False), jacobian_cond(methane, scaled=True))
assert jacobian_cond(methane, scaled=False) == pytest.approx(5.703e17, rel=1e-3)
assert jacobian_cond(methane, scaled=True) == pytest.approx(2511, abs=1)

Expand Down Expand Up @@ -476,9 +475,8 @@ def test_solve_heat_duty(self, methane):

@pytest.mark.solver
@pytest.mark.skipif(solver is None, reason="Solver not available")
@pytest.mark.integration
@pytest.mark.component
def test_verify_scaling_duty(self, methane):
print(jacobian_cond(methane, scaled=False), jacobian_cond(methane, scaled=True))
assert jacobian_cond(methane, scaled=True) == pytest.approx(9191, abs=1)

assert len(extreme_jacobian_rows(methane, scaled=True)) == 0
Expand Down

0 comments on commit 9fe7e73

Please sign in to comment.