From ba5e808368fcaf346608a9590030a539cd4c7ea6 Mon Sep 17 00:00:00 2001 From: eickenberg Date: Thu, 8 Apr 2021 16:30:20 -0400 Subject: [PATCH] DOC fix random uniform call in 1 minute intro Updating to what I am guessing was meant. I can also add an `import numpy` to the import statement above for self-containedness. --- docs/source/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index 3f22c7a60..7a1ce76aa 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -107,7 +107,7 @@ easily manipulate the existing column data or add new columns: BoxSize = 2500. catalog['Position'] *= BoxSize # re-normalize units of Position - catalog['Mass'] = 10**(numpy.random(12, 15, size=len(catalog))) # add some random mass values + catalog['Mass'] = 10**(numpy.random.uniform(12, 15, size=len(catalog))) # add some random mass values We can generate a representation of the density field on a mesh using our catalog of objects. Here, we interpolate the particles onto a mesh of