Skip to content

Commit

Permalink
Merge pull request #107 from arbennett/develop
Browse files Browse the repository at this point in the history
Fix last gru index for distributed
  • Loading branch information
arbennett committed May 18, 2020
2 parents 7f781c3 + 851775a commit 5f55658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysumma/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def _generate_args(self, chunk_size: int=None, num_chunks: int=None):
if chunk_size:
sim_truncated = (chunk_size-1) * (sim_size // (chunk_size-1))
starts = np.arange(1, sim_truncated+1, chunk_size).astype(int)
stops = np.append(starts[1:], sim_size)
stops = np.append(starts[1:], sim_size+1)
chunks = np.vstack([starts, stops]).T
elif num_chunks:
chunk_size = np.ceil(sim_size / num_chunks).astype(int)
Expand Down

0 comments on commit 5f55658

Please sign in to comment.