patrick-kidger / patrick-kidger/optimistix

Array contents are not always displayed with verbose output

Open
#137 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
623
Forks
54
PR merge metrics
No merged PRs in 30d

Description

I've noticed that when setting verbose=frozenset({"y"}) in a solver, and y is an eqx.Module, pytree leaves default to the output of eqx.tree_pprint(..., short_arrays=False). It would be helpful to see the array contents for the verbose output, but I realize this is just the default behavior for printing an eqx.Module. Is there a way to configure printing so that array contents are displayed?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how solver verbose output renders pytree leaves when the value is an eqx.Module, focusing on the interaction with eqx.tree_pprint(..., short_arrays=False). Done means that enabling verbose=frozenset({"y"}) displays the contents of array leaves rather than only their abbreviated representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.