Skip to content

simplify pprint functions#49

Merged
ASEM000 merged 2 commits intomainfrom
simplify-pprint
Apr 3, 2023
Merged

simplify pprint functions#49
ASEM000 merged 2 commits intomainfrom
simplify-pprint

Conversation

@ASEM000
Copy link
Copy Markdown
Owner

@ASEM000 ASEM000 commented Apr 3, 2023

  • simplify tree_mermaid
  • simplify tree_repr
  • add transpose to tree_repr_with_trace to switch rows<->cols
  • change ... printing for depth=0 in containers
  • simplify tree_summary
    • drop size from tree_summary
    • add is_leaf in tree_summary
    • drop width from tree_summary
    • leaves are counted as 1 or size of array
  • remove one arg check for callbacks
  • move auto registration to init wrapper

- simplify `tree_mermaid`
- simplify tree repr
- print mods add `transpose` to `tree_repr_with_trace`
- change `...` printing for depth=0 in containers
- simplify `tree_summary`
- drop size from `tree_summary`
- add `is_leaf` in `tree_summary`
- drop `width` from `tree_summary`
- leaves are counted as 1 or size of array
- remove one arg check for callbacks
- move auto registration to init wrapper
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2023

Codecov Report

Patch coverage: 99.16% and project coverage change: -0.16 ⚠️

Comparison is base (18fb64a) 99.61% compared to head (da4aa6b) 99.45%.

❗ Current head da4aa6b differs from pull request most recent head 2355781. Consider uploading reports for the commit 2355781 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
- Coverage   99.61%   99.45%   -0.16%     
==========================================
  Files          15       15              
  Lines        2825     2768      -57     
==========================================
- Hits         2814     2753      -61     
- Misses         11       15       +4     
Impacted Files Coverage Δ
pytreeclass/__init__.py 100.00% <ø> (ø)
tests/test_tree_viz_util.py 96.15% <ø> (-0.99%) ⬇️
pytreeclass/_src/tree_pprint.py 98.79% <98.48%> (-1.21%) ⬇️
pytreeclass/_src/tree_base.py 100.00% <100.00%> (ø)
pytreeclass/_src/tree_decorator.py 100.00% <100.00%> (ø)
pytreeclass/_src/tree_freeze.py 100.00% <100.00%> (ø)
pytreeclass/_src/tree_indexer.py 99.65% <100.00%> (+0.05%) ⬆️
pytreeclass/_src/tree_trace.py 100.00% <100.00%> (ø)
tests/test_tree_pprint.py 98.40% <100.00%> (+0.01%) ⬆️
tests/test_treeclass.py 99.13% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ASEM000 ASEM000 merged commit 572f2fd into main Apr 3, 2023
@ASEM000 ASEM000 deleted the simplify-pprint branch April 3, 2023 23:01
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.

1 participant