activitysim icon indicating copy to clipboard operation
activitysim copied to clipboard

Tracing crashes when trying to trace a household_id in both synthetic and proto populations

Open dhensle opened this issue 1 year ago • 0 comments

Describe the bug Tracing will crash if tracing a household id that exists in both the proto population (created for the disaggregate accessibilities model) and synthetic population.

To Reproduce Change the hoousehold_id for a household in the prototype_mtc_examples to 1 in the persons and households file, then run with trace_hh_id with 1 and sharrow on.

Expected behavior Not crash -- tracing should output the results for the proto population household id 1 through the disaggregate accessibilities model and the results for the synthetic population household for all other downstream models.

Additional context Crash happens on the below assert statement: image

(There's a typo here that checks the persons table array twice, but the real issue is that it contains both the proto_persons and persons tables.)

It is also unclear to me why this crash only happens with sharrow on.

dhensle avatar Oct 02 '24 23:10 dhensle