forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: Fix Multithreaded Generation example docs (numpygh-15367)
The old code examples did not actually run correctly and had a bug. They were also never updated to use SeedSequence correctly. This fixes both. * DOC, BUG: Fixes Multithreaded Generation docs Working on numpy#15365 The code runs now, but I get quite different runtimes than in the example. May need some more work * DOC: changes after PR review * DOC: Changing input/output lines to sphinx standard For ipython example: Adding `Out[i]` where i is the input cell number and correcting vissual multiline inputs * MAINT: Replace `jumped` by `SeedSequence` in multithreading snippet After PR review, decided to replace `jumped` by `SeedSequence` as it is a more general method. Adopted the introduction to reflect this. Also added a section on the reproducibility for different machines and number of threads + an example. * MAINT: Changes after PR review - Switch back to default_rng() instead of the Generator(BitGenerator)) syntax pursuant @rkern 's explanation in numpy#15391 - small fixes * MAINT: Delete unneccesary reference to PCG64 * MAINT: Added newline finxing codeblock error in docs Trying to see whether this fixes circleci error * MAINT: Clean up in imports of code snippet
- Loading branch information
Showing
1 changed file
with
36 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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