Commits

John ZuHone  committed 0330e89

Changed date; also changed numbers in prompts

  • Participants
  • Parent commits 7e2a0bc

Comments (0)

Files changed (1)

File content/post/ParticleGenerator.rst

 Particle Generators
 ===================
 
+.. date: 1357283100
 
 `Notebook Download <https://hub.yt-project.org/go/mf0ba2>`_
 
 want to add particles to an already existing set but make sure they have
 uniqune indices.
 
-In[20]:
+In[1]:
 
 .. sourcecode:: python
 
 
 Next, we'll set up a uniform grid with some random density data:
 
-In[21]:
+In[2]:
 
 .. sourcecode:: python
 
 assign\_indices assigns the indices (using numpy.arange by default).
 apply\_to\_stream applies the particle fields to the grid.
 
-In[22]:
+In[3]:
 
 .. sourcecode:: python
 
 Now that the particles are part of the parameter file, they may be
 manipulated and plotted:
 
-In[23]:
+In[4]:
 
 .. sourcecode:: python
 
 add\_indices function we defined earlier to assign indices that are all
 different from the ones the already existing particles have.
 
-In[24]:
+In[5]:
 
 .. sourcecode:: python
 
 
 We now have both sets of particles:
 
-In[25]:
+In[6]:
 
 .. sourcecode:: python
 
 And by sorting all of the indices we can check that all of them are
 unique, as advertised:
 
-In[26]:
+In[7]:
 
 .. sourcecode:: python
 
 distribution and refine the grid based on the overdensity over some
 value.
 
-In[27]:
+In[8]:
 
 .. sourcecode:: python
 
 these particles, we will set the optional argument clobber=True, which
 will remove the particles we already created.
 
-In[28]:
+In[9]:
 
 .. sourcecode:: python
 
 due to the fact that they are taken from a thick slab and only a slice
 of the grid-based field is shown.
 
-In[29]:
+In[10]:
 
 .. sourcecode:: python