From 9e32c2668c9898d73d28404aff1cfc7936977d53 Mon Sep 17 00:00:00 2001 From: Michael Whittaker Date: Thu, 25 Mar 2021 20:33:53 -0700 Subject: [PATCH] Udpated paper script. --- examples/paper.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/paper.py b/examples/paper.py index eae2363..f28e90b 100644 --- a/examples/paper.py +++ b/examples/paper.py @@ -75,7 +75,7 @@ def main() -> None: print() # Search. - qs, _ = search( + qs, sigma = search( nodes = [a, b, c, d], read_fraction = 1, optimize = 'latency', @@ -84,12 +84,12 @@ def main() -> None: # timeout = seconds(3), ) print(qs) # a + b + c + d - sigma = qs.strategy( - read_fraction = 1, - optimize = 'latency', - load_limit = 1 / 150, - network_limit = 2, - ) + # sigma = qs.strategy( + # read_fraction = 1, + # optimize = 'latency', + # load_limit = 1 / 150, + # network_limit = 2, + # ) print(sigma) # c: 1/3 d: 2/3 print(sigma.capacity(read_fraction=1)) # 150 print(sigma.network_load(read_fraction=1)) # 1