Skip to content

Output

Data Model for ActivitySim Outputs

Instructions: customize these example values for your own ActivitySim implementation

Household

Bases: InputHousehold

Relevant variables for ActivitySim household output data file. Customize as needed for your application.

Source code in output.py
66
67
68
69
70
71
72
class Household(InputHousehold):
    """
    Relevant variables for ActivitySim `household` output data file.
    Customize as needed for your application.
    """

    joint_tours: Optional[List[JointTour]] = None

JointTour

Bases: Tour

Relevant variables for ActivitySim joint_tours output data file. Customize as needed for your application.

Source code in output.py
57
58
59
60
61
62
63
class JointTour(Tour):
    """
    Relevant variables for ActivitySim `joint_tours` output data file.
    Customize as needed for your application.
    """

    participants: List[Person]

Person

Bases: InputPerson

Relevant variables for ActivitySim persons output data file. Customize as needed for your application.

Source code in output.py
46
47
48
49
50
51
52
53
54
class Person(InputPerson):
    """
    Relevant variables for ActivitySim `persons` output data file.
    Customize as needed for your application.
    """

    usual_work_location: Optional[int]
    usual_school_location: Optional[int]
    individual_tours: Optional[List[Tour]]

Tour

Bases: BaseModel

Relevant variables for ActivitySim tours output data file. Customize as needed for your application.

Source code in output.py
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class Tour(BaseModel):
    """
    Relevant variables for ActivitySim `tours` output data file.
    Customize as needed for your application.
    """

    id: int
    purpose: e.Purpose
    origin: int
    destination: int
    depart_from_origin: e.ModelTime
    return_to_origin: e.ModelTime
    trips: List[Trip]
    mode: e.Mode

Trip

Bases: BaseModel

Relevant variables for ActivitySim trips output data file. Customize as needed for your application.

Source code in output.py
15
16
17
18
19
20
21
22
23
24
25
26
27
class Trip(BaseModel):
    """
    Relevant variables for ActivitySim `trips` output data file.
    Customize as needed for your application.
    """

    id: int
    purpose: e.Purpose
    origin: int
    destination: int
    depart_from_origin: e.ModelTime
    arrive_at_destination: e.ModelTime
    mode: e.Mode