Skip to content

Commit

Permalink
DOC fix random uniform call in 1 minute intro
Browse files Browse the repository at this point in the history
Updating to what I am guessing was meant.
I can also add an `import numpy` to the import statement above for self-containedness.
  • Loading branch information
eickenberg committed Apr 8, 2021
1 parent a387cf4 commit ba5e808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba5e808

Please sign in to comment.