Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions activitysim/abm/models/disaggregate_accessibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ def zone_sampler(self):
maz_candidates = maz_candidates[
~maz_candidates.MAZ.isin(maz_sample_idx)
]

# Need to make sure we sample from TAZs that still exist in the maz_candidates
taz_candidates = taz_candidates[
taz_candidates.index.isin(maz_candidates.TAZ)
]

# Calculate the remaining samples to collect
n_samples_remaining = n_samples - len(maz_sample_idx)
n_samples_remaining = (
Expand Down
Loading
Loading