We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59dc4c commit be5d093Copy full SHA for be5d093
activitysim/abm/models/disaggregate_accessibility.py
@@ -435,6 +435,10 @@ def zone_sampler(self):
435
maz_candidates = maz_candidates[
436
~maz_candidates.MAZ.isin(maz_sample_idx)
437
]
438
+
439
+ # Need to make sure we sample from TAZs that still exist in the maz_candidates
440
+ taz_candidates = taz_candidates[taz_candidates.index.isin(maz_candidates.TAZ)]
441
442
# Calculate the remaining samples to collect
443
n_samples_remaining = n_samples - len(maz_sample_idx)
444
n_samples_remaining = (
0 commit comments