From 0eb39319a1fbf6f50b257c4e4ae5223a10cb4804 Mon Sep 17 00:00:00 2001 From: Lindley Graham Date: Wed, 11 May 2016 13:06:37 -0400 Subject: [PATCH] fixed local index --- bet/calculateP/calculateP.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bet/calculateP/calculateP.py b/bet/calculateP/calculateP.py index 579c0483..a4c25109 100644 --- a/bet/calculateP/calculateP.py +++ b/bet/calculateP/calculateP.py @@ -432,6 +432,7 @@ def exact_volume_1D(samples, input_domain, distribution='uniform', a=None, # Set up local arrays for parallelism 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)