From 91765bdff470a4db7b10622c3894bed418a22a06 Mon Sep 17 00:00:00 2001 From: Heidi Tong Date: Fri, 18 Jun 2021 11:23:37 -0700 Subject: [PATCH] Update dwave-preprocessing from 0.1.2 to 0.2.0 --- dwave-preprocessing | 2 +- setup.py | 2 +- tests/test_individually.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dwave-preprocessing b/dwave-preprocessing index 15d17e96..c6141e22 160000 --- a/dwave-preprocessing +++ b/dwave-preprocessing @@ -1 +1 @@ -Subproject commit 15d17e96927c0554c6e1f251f0fde08c7e7c5495 +Subproject commit c6141e224e8066453e1c7a5eb6ae7bf42bcc5182 diff --git a/setup.py b/setup.py index a4acd14c..b954aad4 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ 'dwave-inspector==0.2.5', 'dwave-neal==0.5.7', 'dwave-networkx==0.8.8', - 'dwave-preprocessing==0.1.2', + 'dwave-preprocessing==0.2.0', 'dwave-qbsolv==0.3.2', 'dwave-system==1.5.0', 'dwave-tabu==0.3.1', diff --git a/tests/test_individually.py b/tests/test_individually.py index 09af5da4..e4d9ef96 100644 --- a/tests/test_individually.py +++ b/tests/test_individually.py @@ -97,8 +97,9 @@ def test_preprocessing(self): from dwave.preprocessing.composites import ScaleComposite bqm = dimod.BinaryQuadraticModel.from_ising({'a': 10}, {'ab': -1, 'bc': 1}) - result = roof_duality(bqm) - self.assertFalse(bqm.variables - result) + lb, fixed = roof_duality(bqm) + self.assertFalse(bqm.variables - fixed) + self.assertEqual(lb, -12.0) sampler = ScaleComposite(dimod.ExactSolver()) result = sampler.sample(bqm, scalar=0.5)