Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle committed Apr 19, 2024
1 parent 8e1fbcd commit a6a0d52
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 a6a0d52

Please sign in to comment.