patrick-kidger / patrick-kidger/optimistix
Array contents are not always displayed with verbose output
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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