Skip to content

Commit

Permalink
fixing #841 (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle authored Apr 25, 2024
1 parent ccd0477 commit 4e3f96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activitysim/abm/models/util/overlap.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def calculate_consecutive(array):
intvs = stops[:, 1] - starts[:, 1]

# Store intervals as a 2D array for further vectorized ops to make.
c = np.bincount(starts[:, 0])
c = np.bincount(starts[:, 0], minlength=array.shape[0])
mask = np.arange(c.max()) < c[:, None]
intvs2D = mask.astype(float)
intvs2D[mask] = intvs
Expand Down

0 comments on commit 4e3f96a

Please sign in to comment.