config¶
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Configuration for passengersim.Carrier object. |
|
Configuration for a single leg in the simulated network. |
|
A travel path from an origin to a destination, comprised of one or more legs. |
|
Specification of passenger demand between an origin–destination pair. |
|
A single fare rule connecting a carrier, market, and booking class. |
|
A mathematical description of the relative arrival rate of customers over time. |
Runtime representation of an annotated type. |
|
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Fare Ratio at which 50% of customers will buy up to a higher fare. |
|
Customer preference data for Time Of Day for departure (TODD). |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Settings for the automatic connection builder. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Configuration for HTML outputs. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
A Pydantic BaseModel with methods for loading from and writing to YAML files. |
Pretty-print as YAML style outputs. |
Configuration Figures¶
These functions are also available as methods on a Config object.
-
passengersim.config._figures.fig_route_map(cfg: Config, carrier: str | None =
None) Chart[source]¶ Create a figure showing the route map for the configured network.
Routes are drawn as geodesic arcs on either a CONUS or world projection, determined automatically by the geographic extent of the network. Airport locations are shown as points, with major hubs (airports serving more than 20% of all legs) rendered as stars.
- Parameters:
- Returns:
alt.Chart – An Altair layered chart combining the base map, route arcs, and airport point markers.
-
passengersim.config._figures.fig_booking_curves(cfg: Config, raw_df: bool =
False) Chart | DataFrame[source]¶ Create a figure showing all booking curves defined in the config.
Each curve is plotted as a line showing the cumulative proportion of bookings made at each number of days prior to departure. Curves are colored by passenger segment and labeled to indicate which demand(s) use them.
- Parameters:
- Returns:
alt.Chart or pd.DataFrame – An Altair line chart of the booking curves, or the raw DataFrame if
raw_dfis True.