-
-
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
Changes from 1 commit
20ac540
9af45ba
587e6fd
b573496
d0ecf91
4243ee7
7431a2d
341c245
f2119c6
834f3f9
4550643
eef1cbd
b9d0cd3
46785ee
a7b045b
145998a
4e16d86
e7ce9eb
b74dbfd
ae28524
6316dd4
e8f0492
413f1a7
4c6ff64
3c0c3d2
1a53d88
a01c893
6cceecc
342b786
d681bac
90a8b61
815c8a1
b6f83b6
afd5e87
ea9063f
f0302f8
768fcf0
66341e5
62f9d5a
01a1d29
d40922d
7a61d6d
c8df697
a6645e0
6097389
7fcf5ca
19ed59e
0329f18
51eb71e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
np.set_printoptions
in the release note
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,8 @@ The are now printed as ``np.float64(3.0)`` rather than just ``3.0``. | |
This may disrupt workflows that store representations of numbers | ||
(e.g. to files) making it harder to read them. They should be stored | ||
e.g. using ``str()`` or ``f"{scalar!s}"`` as explicit strings. | ||
|
||
For the time being, affected users can use ``np.set_printoptions(legacy="1.25")`` | ||
to get the old behavior (with possibly few exceptions). | ||
There was a problem hiding this comme 8000 nt. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "possibly a few exceptions" |
||
Documentation of downstream projects may require larger updates, | ||
if tested, we are working on tooling for: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe more clearly: "if code snippets are tested. We are ..." |
||
`doctest-plus <https://github.com/scientific-python/pytest-doctestplus>`__ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe raise an issue there and refer to it here? |
||
|
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.
Reverse sentence: "as explicit strings, e.g., using
str()
orf"{scalar!s}"
."