Skip to content

Commit

Permalink
Ran Black on these files
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerpolley committed Nov 15, 2024
1 parent 15a0426 commit 194f476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion idaes/models/unit_models/stream_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ def calculate_scaling_factors(self):
else:
default = 1 / self.multiplier.value

scale = iscale.get_scaling_factor(self.multiplier, default=default, warning=False)
scale = iscale.get_scaling_factor(
self.multiplier, default=default, warning=False
)
for var_name in self.inlet.vars.keys():
var = getattr(self.inlet, var_name)
outlet_expr = getattr(self.outlet, var_name)
Expand Down
4 changes: 1 addition & 3 deletions idaes/models/unit_models/tests/test_stream_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ def test_solve(self, btx):
@pytest.mark.skipif(solver is None, reason="Solver not available")
@pytest.mark.component
def test_solution(self, btx):
assert pytest.approx(5, abs=1e-3) == value(
btx.fs.unit.inlet.flow_mol[0]
)
assert pytest.approx(5, abs=1e-3) == value(btx.fs.unit.inlet.flow_mol[0])
assert pytest.approx(0.5, abs=1e-3) == value(
btx.fs.unit.inlet.mole_frac_comp[0, "benzene"]
)
Expand Down

0 comments on commit 194f476

Please sign in to comment.