-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG + 1] Fix pprint ellipsis #13436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
992883f
ugly fix
NicolasHug 688e109
Merge branch 'master' into fix_pprint_ellipsis
NicolasHug 83112b7
better bruteforce ellipsis
NicolasHug 0306ed1
Trigger CI
NicolasHug 7f2adb5
Used regex instead of numpy
NicolasHug 0f9b6bd
use substring matches directly instead of indexes
NicolasHug cfee311
Used parenthesis instead of backdash and used explicit newline charac…
NicolasHug b16dca8
Covered case when left and right side are on the same line, + tests
NicolasHug af1b1a8
removed method params whose length differ between Oss
NicolasHug 9bcf16b
used simpler and shorter tests
NicolasHug b124bea
Merge branch 'master' of github.com:scikit-learn/scikit-learn into fi…
NicolasHug 0d03910
Only add ellipsis if it actually makes the string shorter
NicolasHug 078dccc
Updated confusing example
NicolasHug 39ec938
Merge remote-tracking branch 'upstream/master' into fix_pprint_ellipsis
NicolasHug 6fab522
Merge branch 'master' into fix_pprint_ellipsis
ogrisel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had, btw, expected that with a configurable
N_CHAR_MAX
you'd make this test case much simpler...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean testing with an estimator that has a shorted repr?
I agree it'd be better (I'll do it if that's what you meant)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Looking at the long, pathological cases give us a better sense of the user experience, but makes the tests harder to work with.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated, thanks it looks much better