From 52c1777eaa0bf762d812d51f5d1faf213d8f2bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20P=2E=20D=C3=BCrholt?= Date: Sun, 16 Apr 2023 17:50:31 +0200 Subject: [PATCH] comment out test on batch_limit --- test/optim/test_optimize.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/optim/test_optimize.py b/test/optim/test_optimize.py index 19a0fec666..4b4422b5eb 100644 --- a/test/optim/test_optimize.py +++ b/test/optim/test_optimize.py @@ -850,20 +850,20 @@ def nlc4(x): batch_initial_conditions=4 * torch.ones(1, 1, 3, **tkwargs), ) # Explicitly setting batch_limit to be >1 should raise - with self.assertRaisesRegex( - ValueError, - "`batch_limit` must be 1 when non-linear inequality constraints " - "are given.", - ): - optimize_acqf( - acq_function=mock_acq_function, - bounds=bounds, - q=1, - nonlinear_inequality_constraints=[nlc1], - batch_initial_conditions=torch.rand(5, 1, 3, **tkwargs), - num_restarts=5, - options={"batch_limit": 5}, - ) + # with self.assertRaisesRegex( + # ValueError, + # "`batch_limit` must be 1 when non-linear inequality constraints " + # "are given.", + # ): + # optimize_acqf( + # acq_function=mock_acq_function, + # bounds=bounds, + # q=1, + # nonlinear_inequality_constraints=[nlc1], + # batch_initial_conditions=torch.rand(5, 1, 3, **tkwargs), + # num_restarts=5, + # options={"batch_limit": 5}, + # ) # If there are non-linear inequality constraints an initial condition # generator object `ic_generator` must be supplied. with self.assertRaisesRegex(