Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/examples/pi/parallelpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
the frequencies of 2 digit sequences in the digits of pi. The
results are plotted using matplotlib.

To run, text files from https://www.super-computing.org/
To run, text files from https://oeis.org/A000796
must be installed in the working directory of the IPython engines.
The actual filenames to be used can be set with the ``filestring``
variable below.

The dataset we have been using for this is the 200 million digit one here:
ftp://pi.super-computing.org/.2/pi200m/
https://oeis.org/A000796

and the files used will be downloaded if they are not in the working directory
of the IPython engines.
Expand Down
6 changes: 3 additions & 3 deletions docs/source/examples/pi/pidigits.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This uses precomputed digits of pi from the website
of Professor Yasumasa Kanada at the University of
Tokoyo: https://www.super-computing.org/
Tokoyo: https://oeis.org/A000796

Currently, there are only functions to read the
.txt (non-compressed, non-binary) files, but adding
Expand All @@ -25,11 +25,11 @@


def fetch_pi_file(filename):
"""This will download a segment of pi from super-computing.org
"""This will download a segment of pi from oeis.org
if the file is not already present.
"""

ftpdir = "ftp://pi.super-computing.org/.2/pi200m/"
ftpdir = "https://oeis.org/A000796"
if os.path.exists(filename):
# we already have it
return
Expand Down