Skip to content

Mandatory Tour Scheduling runtime error #911

@SchemeSonic

Description

@SchemeSonic

Hello all,

I am trying to run activitysim in estimation mode using my own seed data. I've successfully run previous models untill the mandatory_tour_scheduling model.
Now I'm stuck at the mandatory_tour_scheduling model and cannot proceed further.

Describe the bug
As shown below I got RuntimeError: couldn't get_survey_values for tdd in tours
Screenshot 2024-11-11 at 11 31 44

Additional context
I’ve used a tracing feature to log values in get_survey_values method. I add logs to lines 591-593, 660-666, 674-677. Below is the screenshot from get_survey_values method that I add logs:
Screenshot 2024-11-11 at 11 41 10
Screenshot 2024-11-11 at 11 41 23

The problem looks related to line 668, “survey_values = reindex(survey_values, dest_index)”
After reindexing, model value tour ids and survey tour ids are not matching and tdd values are getting empty in survey_values variable. However model_values which is the input of get_survey_values has tour_id and tdd values. Moreover, survey_values has tour_id and tdd values before reindexing method called.

I'm also attaching the output logs here: https://drive.google.com/drive/folders/1S8s7fD9Vh51G8XkMwF_jdGrEVe4kWUtQ

Extra info: While creating the seed data, I use my own tour_ids, trip_ids etc. for the survey_tours.csv, survey_trips.csv, survey_joint_tour_participants.csv files and run activitysim infer.py to generate override_.csv.

Thank you for your support, if you have any further clarification let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working/bug f

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions