Skip to content

Commit

Permalink
Merge pull request #494 from rainwoodman/pmesh-0.43
Browse files Browse the repository at this point in the history
Avoid using pm.x; it will be removed in pmesh 0.1.43.
  • Loading branch information
rainwoodman committed May 30, 2018
2 parents 173e33a + 5e13426 commit bc17932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbodykit/mockmaker.py
Expand Up @@ -296,7 +296,7 @@ def poisson_sample_to_points(delta, displacement, pm, nbar, bias=1., seed=None,
for i in range(delta.ndim):

# particle positions initially on the coordinate grid
pos_mesh[i] = numpy.squeeze(delta.pm.x[i])[nonzero_cells[i]]
pos_mesh[i] = numpy.squeeze(delta.x[i])[nonzero_cells[i]]

# displacements for each particle
disp_mesh[i] = displacement[i][nonzero_cells]
Expand Down

0 comments on commit bc17932

Please sign in to comment.