From c81c63392532a85f996e8bbd00415f026320f796 Mon Sep 17 00:00:00 2001 From: rahulsavani Date: Tue, 6 Oct 2026 16:58:53 +0100 Subject: [PATCH] Correct --accuracy help text in randomstart and bimatrix CLIs Coordinates are rounded to multiples of 1/x that sum to 1, which is not always the nearest multiple (see roundArray). Co-Authored-By: Claude Opus 5.5 --- src/lemke/bimatrix.py | 2 +- src/lemke/randomstart.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lemke/bimatrix.py b/src/lemke/bimatrix.py index 3fe447b..fd7d65f 100644 --- a/src/lemke/bimatrix.py +++ b/src/lemke/bimatrix.py @@ -661,7 +661,7 @@ def trace_uniform_cmd(filename, decimals): show_default=True, type=click.IntRange(1, MAX_ACCURACY), metavar="INTEGER", - help="Denominator x: each coordinate of the prior is rounded to the nearest 1/x", + help="Denominator x: prior coordinates are rounded to multiples of 1/x that sum to 1", ) def trace_random_cmd(filename, decimals, priors, seed, accuracy): """Trace using random prior(s).""" diff --git a/src/lemke/randomstart.py b/src/lemke/randomstart.py index 50f389e..c474aeb 100644 --- a/src/lemke/randomstart.py +++ b/src/lemke/randomstart.py @@ -170,7 +170,7 @@ def plot_simplex(numpoints=200, accuracy=20, higherdim=3, naiveplot=False): "--accuracy", default=20, show_default=True, - help="Denominator x: each coordinate is rounded to the nearest multiple of 1/x", + help="Denominator x: coordinates are rounded to multiples of 1/x that sum to 1", type=click.IntRange(1, MAX_ACCURACY), metavar="INTEGER", )