Skip to content

Commit f492693

Browse files
committed
Black
1 parent e147d8f commit f492693

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/linear_tree/test_lt_formulation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def test_scaling():
387387
Exception, match="Input Bounds needed to represent linear trees as MIPs"
388388
):
389389
LinearTreeDefinition(regr)
390-
390+
391391
formulation = LinearTreeHybridBigMFormulation(lt_def2)
392392

393393
model1 = pe.ConcreteModel()
@@ -410,10 +410,10 @@ def connect_outputs(mdl):
410410
status_1_bigm = pe.SolverFactory("scip").solve(model1, tee=True)
411411
pe.assert_optimal_termination(status_1_bigm)
412412
solution_1_bigm = (pe.value(model1.x), pe.value(model1.y))
413-
y_pred = regr.predict(np.array((solution_1_bigm[0] - mean_x_small)/std_x_small).reshape(1, -1))
414-
assert y_pred[0] == pytest.approx((solution_1_bigm[1] - mean_y_small)/ std_y_small)
415-
416-
413+
y_pred = regr.predict(
414+
np.array((solution_1_bigm[0] - mean_x_small) / std_x_small).reshape(1, -1)
415+
)
416+
assert y_pred[0] == pytest.approx((solution_1_bigm[1] - mean_y_small) / std_y_small)
417417

418418

419419
#### MULTIVARIATE INPUT TESTING ####

0 commit comments

Comments
 (0)