traveler.demo.work_location.Tours#
- class traveler.demo.work_location.Tours(store, table_name=None, index_array=None)[source]#
Bases:
StoredTableA class representing households in the traveler framework.
Initialize the IndexedTable with an index array and a table.
- Parameters:
index_array (jax.numpy.ndarray) – An array of indices to index into the table.
table (JaxTable) – The table to index into.
store (AbstractStore | None)
table_name (str)
Methods#
|
Print summary information about the underlying table. |
|
Compute a lazy attribute and push it down to the underlying table. |
|
Rehash a table's random key by folding in additional values. |
|
Return the inherited schema fields declared by class annotations. |
|
Convert the stored table to a pandas DataFrame. |
|
Convert the stored table to a polars DataFrame. |
|
Validate the table and index array. |
|
Return a new instance of this StoredTable with the given store. |
Prepare this stored table for use with JAX tools. |
Attributes#
Return households aligned with the indexed tours. |
|
Return persons aligned with the indexed tours. |
|
Get the index array for this IndexedTable. |
|
Whether the SOV mode is available for this tour. |
|
The name of the column that serves as the unique identifier for the table. |
|
The name of the table in the store. |
|
Skims time period for the outbound (first) half of the tour. |
|
Skims time period for the inbound (second, return) half of the tour. |
|
Whether this is a joint tour. |
|
Whether this is an at-work subtour. |
|
Whether the HOV2 mode is available for this tour. |
|
Whether the work tour is SOV. |
|
Terminal time for the tour, used in utility calculations. |
|
Number of participants in the tour. |
|
Daily parking cost for the tour. |