-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
fix documentation build error in basics.rst #53398
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
Conversation
doc/source/user_guide/basics.rst
Outdated
@@ -2121,6 +2121,9 @@ different numeric dtypes will **NOT** be combined. The following example will gi | |||
|
|||
.. ipython:: python | |||
|
|||
@suppress | |||
np.random.seed(2358) |
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 don't think this is quite right (since the code below should work for all seeds).
A better fix would be to replace the np.random.randn call with something that generates random integers in the range of [0,255] (range of uint8).
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.
Thank you for your feedback. I'll update the pull request.
Regards,
Dominik
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.
LGTM. Thanks for the quick fix!
Thanks @DominikBerger01 |
…basics.rst) (#53456) * Backport PR #53398: fix documentation build error in basics.rst * Update doc/source/user_guide/basics.rst --------- Co-authored-by: Dominik Berger <[email protected]> Co-authored-by: Matthew Roeschke <[email protected]>
* fix documentation build error in basics.rst * remove need for seed and gen random np array from range (0,255)
* fix documentation build error in basics.rst * remove need for seed and gen random np array from range (0,255)
DOC: fix documentation build error in basics.rst based on #53354
building with
python make.py --single user_guide/basics.rst
now works without issues
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.