-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
ENH: Update scalar representations as per NEP 51 #22449
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 1 commit
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
20ac540
ENH: Changed repr of np.bool_
ganesh-k13 9af45ba
ENH: Used raw boolean value
ganesh-k13 587e6fd
ENH: Refactored to use PyUnicode_FromString
ganesh-k13 b573496
ENH: Fixed doc-string
ganesh-k13 d0ecf91
ENH: Added release notes (#17592)
ganesh-k13 4243ee7
ENH: Fixed release notes `np.bool_` repr (#17592)
ganesh-k13 7431a2d
Update doc/release/upcoming_changes/17592.improvement.rst
eric-wieser 341c245
ENH: Changed repr of ints
ganesh-k13 f2119c6
ENH: Changed repr of ints to use tp_name
ganesh-k13 834f3f9
WIP: Get to the NEP 51 state (and try to figure that out...)
seberg 4550643
TST: Fixup tests for repr changes
seberg eef1cbd
TST: Some more test fixups for repr changes
seberg b9d0cd3
TST: STrengthen test on newer Python versions
seberg 46785ee
Fixup tests, repr, and guard against using full repr in array printing
seberg a7b045b
WIP: Continue with refactoring more...
seberg 145998a
WIP: Refactor array formatter with a new `get_formatter`
seberg 4e16d86
ENH: Fixup records and void scalar printing
seberg e7ce9eb
ENH: Only print type information when helpful for MA fill value
seberg b74dbfd
API: Switch `ndarray.tofile` back to defaulting to `str()` usage
seberg ae28524
TST: Fixup tests to make windows/32bit systems and linter happy
seberg 6316dd4
Adapt format to not block s and r format codes
seberg e8f0492
WIP: Fixup arrayprint for scalar values
seberg 413f1a7
MAINT: Switch to also have str explicitly, fixup MA and forward str/r…
seberg 4c6ff64
DOC: Update reference to pass refguide
seberg 3c0c3d2
STY: Fix linter
seberg 1a53d88
BUG: Fixups for last changes to make CI pass
seberg a01c893
DOC: First small refdoc update (very verbose update required, too lar…
seberg 6cceecc
DOC: Remove outdated release note (eventually need new referencing NEP)
seberg 342b786
DOC: Fixup docs; only "big" changes not all scalars
seberg d681bac
fix rebase error
seberg 90a8b61
MAINT: Allow all options again (because subarrays need them) and fix …
seberg 815c8a1
DOC: More doc fixes to pass tests
seberg b6f83b6
MAINT: Special case string fill-value in MA repr
seberg afd5e87
DOC: Add a release note for NEP 51 related changes
seberg ea9063f
ENH; Add legacy fallback mode for non NEP 51 printing because...
seberg f0302f8
Allow legacy fallback (fix float16, heh)
seberg 768fcf0
TST,MAINT: Add tests for both new and old scalar repr and fix complex
seberg 66341e5
DOC: Mention `np.set_printoptions` in the release note
seberg 62f9d5a
TST: Ensure little-endian int est
seberg 01a1d29
Simplify, removing new fmt option
mhvk d40922d
Minimize changes relative to main
mhvk 7a61d6d
Remove unnecessary legacy check and longdouble quoting support
seberg c8df697
MAINT: Undo bad rebase (or maybe small accidental commit)
seberg a6645e0
Address some other review comments
seberg 6097389
Hack strings to be correct for fill-value
seberg 7fcf5ca
Update release note and add note to NEP that it was not fully impleme…
seberg 19ed59e
MAINT: Tweak string check (forgot the kind, but maybe tuple is nice)
seberg 0329f18
Also force repr for object
seberg 51eb71e
MAINT: A few small fixups from review
seberg 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
Address some other review comments
- Loading branch information
commit a6645e08320c7269088345e0857f27f6eadec095
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.
Yes, the name change is fine!