From 174e0639feb74e312d1fbbc2c25e8078f3c8ef0d Mon Sep 17 00:00:00 2001 From: Joel Pasvolsky Date: Thu, 24 Jul 2025 10:39:38 -0700 Subject: [PATCH] Fix broken doctest on ``broken_chains()`` --- dwave/embedding/chain_breaks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dwave/embedding/chain_breaks.py b/dwave/embedding/chain_breaks.py index 8e6303ee..dfbe01c4 100644 --- a/dwave/embedding/chain_breaks.py +++ b/dwave/embedding/chain_breaks.py @@ -46,13 +46,15 @@ def broken_chains(samples, chains): broken. Examples: + + >>> import numpy as np + ... >>> samples = np.array([[-1, +1, -1, +1], [-1, -1, +1, +1]], dtype=np.int8) >>> chains = [[0, 1], [2, 3]] >>> dwave.embedding.broken_chains(samples, chains) array([[True, True], [ False, False]]) - >>> samples = np.array([[-1, +1, -1, +1], [-1, -1, +1, +1]], dtype=np.int8) >>> chains = [[0, 2], [1, 3]] >>> dwave.embedding.broken_chains(samples, chains) array([[False, False],