Skip to content

Commit

Permalink
fixed local_index
Browse files Browse the repository at this point in the history
  • Loading branch information
lcgraham committed May 11, 2016
1 parent 0eb3931 commit 40e0469
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bet/calculateP/calculateP.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ def estimate_volume(samples, lambda_emulate=None):
#local_index = range(0+comm.rank, samples.shape[0], comm.size)
local_index = np.array_split(np.arange(samples.shape[0]),
comm.size)[comm.rank]
local_index = np.array(local_index, dtype='int64')
lam_vol_local = lam_vol[local_index]

return (lam_vol, lam_vol_local, local_index)
Expand Down

0 comments on commit 40e0469

Please sign in to comment.