Skip to content

Correct --accuracy help text in randomstart and bimatrix CLIs - #25

Merged
rahulsavani merged 1 commit into
mainfrom
docs/accuracy-help-text
Oct 8, 2026
Merged

rahulsavani merged 1 commit into
mainfrom
docs/accuracy-help-text

Conversation

@rahulsavani

Copy link
Copy Markdown
Member

Follow-up to #20. The --accuracy help text of randomstart and bimatrix trace random said each coordinate is rounded to the nearest multiple of 1/x. As now documented in roundArray, coordinates are rounded to multiples of 1/x that sum to 1, so an entry is not always rounded to the nearest multiple (e.g. roundArray([0.4, 0.3, 0.3], 1) == [1, 0, 0]).

New --help output:

randomstart:
  --accuracy INTEGER   Denominator x: coordinates are rounded to multiples of
                       1/x that sum to 1  [default: 20; 1<=x<=10000000]

bimatrix trace random:
  --accuracy INTEGER  Denominator x: prior coordinates are rounded to multiples
                      of 1/x that sum to 1  [default: 1000; 1<=x<=10000000]

Help-text only; no behaviour changes.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

Both documentation-only changes accurately describe the existing rounding behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Corrects CLI help text to accurately describe probability-coordinate rounding.

Changes:

  • Clarifies --accuracy behavior in both affected commands.
  • Aligns help text with roundArray behavior.
File Description
src/​lemke/​randomstart.py Corrects randomstart --accuracy help text.
src/​lemke/​bimatrix.py Corrects trace random --accuracy help text.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rahulsavani
rahulsavani merged commit 3cbc210 into main Oct 8, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants