aeromaps.models.air_transport.air_traffic.ask_market¶
ask_market¶
Per-market ASK models for use when a MarketManager is loaded.
Two classes:
ASKMarket— ASK for one passenger market.ASKAggregator— sums per-market ASKs into the totalaskconsumed by downstream models, and publishes each market's share of that total (ask_<mid>_share).
All use model_type="custom" (AeroMAPSCustomModelWrapper). Input/output
names are built from the market id at construction time.
ASKMarket ¶
ASKMarket(name, market_id, *args, **kwargs)
Bases: AeroMAPSModel
ASK for one passenger market: <mid>_ask = <mid>_rpk / (<mid>_load_factor / 100).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Discipline name. |
required |
market_id
|
str
|
Market identifier (e.g. |
required |
Source code in aeromaps/models/air_transport/air_traffic/ask_market.py
67 68 69 70 71 72 73 74 75 76 77 | |
compute ¶
compute(input_data)
Compute ASK for one passenger market from RPK and load factor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_data
|
dict
|
Inputs containing market RPK and load factor series. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Output dictionary with the market ASK series. |
Source code in aeromaps/models/air_transport/air_traffic/ask_market.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
ASKAggregator ¶
ASKAggregator(name, passenger_market_ids, *args, **kwargs)
Bases: AeroMAPSModel
Sum per-market ASKs into the total ask consumed by downstream models.
Also publishes each market's share of that total, ask_<mid>_share, which is
what downstream models should weight per-ASK intensities with. Reconstructing the
weighting from the volumes at the point of use divides by a total that can be zero;
a share is a share whatever the volumes are. See :func:_ask_shares for the year
where even the shares have to come from somewhere else.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Discipline name. |
required |
passenger_market_ids
|
list of str
|
Ordered list of passenger market ids. |
required |
Source code in aeromaps/models/air_transport/air_traffic/ask_market.py
123 124 125 126 127 128 129 130 131 132 133 134 135 | |
compute ¶
compute(input_data)
Aggregate per-market ASK into the total ASK series.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_data
|
dict
|
Inputs containing per-market ASK series. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
Output dictionary with the total ASK series. |
Source code in aeromaps/models/air_transport/air_traffic/ask_market.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |