Flight data
This script provides dataclasses storing arrays representing temporal data of flights.
FlightData
dataclass
Base dataclass for derived classes holding time series data associated to a flight.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id | str | Flight ID to which time series data arrays are associated | required |
timestamps_array | List[datetime] | Sequence of time stamps with milliseconds granularity | required |
Source code in src/rmlab/data/flight.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
FlightDataBooks
dataclass
Bases: FlightData
Data class with arrays related to books associated to a flight
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fares_array | List[str] | Stores the enabled fares at each time stamp | required |
pps_array | List[int] | Stores the price per seat associated to each booking in cents | required |
seats_array | List[int] | Stores the seats booked for each booking | required |
cumulated_seats_array | List[int] | Stores the cumulated booked seats at each time stamp | required |
cumulated_revenue_array | List[int] | Stores the cumulated revenue at each time stamp in cents | required |
Source code in src/rmlab/data/flight.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
FlightDataEvents
dataclass
Bases: FlightData
Data class holding a sequence of events associated to a flight
Parameters:
Name | Type | Description | Default |
---|---|---|---|
events_array | List[FlightEvent] | Stores the events at each time stamp. | required |
Source code in src/rmlab/data/flight.py
155 156 157 158 159 160 161 162 163 164 165 166 167 |
|
FlightDataForecastedBooks
dataclass
Bases: FlightData
Data class with arrays related to forecasted books associated to a flight
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pps_array | List[float] | Stores the forecasted price per seat at each time stamp | required |
seats_array | List[float] | Stores the forecasted cumulated booked seats at each time stamp | required |
Source code in src/rmlab/data/flight.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
|
FlightDataPricePerSeatSettings
dataclass
Bases: FlightData
Data class with arrays of prices per seat for each fare associated to a flight
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fare_to_pps_array | Mapping[str], List[int] | Maps each fare identifier to an array storing the prices per seat at each time stamp. | required |
Source code in src/rmlab/data/flight.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|
FlightDataQForecast
dataclass
Bases: FlightData
Data class with arrays result of q-forecast.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
frat5_array | List[float] | Array of FRAT5 values | required |
book_qequivalent_array | List[float] | Array of Q-equivalent books. | required |
Source code in src/rmlab/data/flight.py
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
|
FlightDataThresholdSettings
dataclass
Bases: FlightData
Data class with arrays of seat thresholds for each fare associated to a flight
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fare_to_threshold_array | Mapping[str], List[int] | Maps each fare identifier to an array storing the seat thresholds at each time stamp. | required |
Source code in src/rmlab/data/flight.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|