Skip to content

Commit

Permalink
Chopped the print statements in the trapping SR3 tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
akaptano committed Jun 12, 2021
1 parent 9fdb74b commit 700fe20
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/optimizers/test_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ def test_target_format_constraints(data_linear_combination, optimizer, target_va

model = optimizer(constraint_lhs=constraint_lhs, constraint_rhs=constraint_rhs)
model.fit(x, x_dot)
print(model.coef_, target_value)
np.testing.assert_allclose(model.coef_[:, 1], target_value, atol=1e-8)


Expand Down Expand Up @@ -521,10 +520,6 @@ def test_trapping_inequality_constraints(thresholds, relax_optim, noise_levels):
feature_names=feature_names,
)
model.fit(x, t=t[1] - t[0])
print(thresholds, relax_optim, noise_levels)
print(
np.dot(constraint_matrix, (model.coefficients()).flatten("F")), constraint_rhs
)
assert np.all(
np.dot(constraint_matrix, (model.coefficients()).flatten("F")) <= constraint_rhs
) or np.allclose(
Expand Down

0 comments on commit 700fe20

Please sign in to comment.