passengersim.callbacks.

booking_detail

Daily tracer collecting cumulative sales for selected legs.

Attach a LegBookingDetailTracer manually, or enable it in a configuration as the leg_booking_detail configured callback. The results are available on summaries as leg_booking_detail and fig_leg_booking_detail_rake (see passengersim.summaries.leg_callback_detail.SimTabLegCallbackDetail).

Results saved before this collector became a tracer hold the same values as rows of callback_data.daily, with keys such as leg-101-sold; the readers in this module accept both.

Classes

LegBookingDetailTracer(leg_ids, *[, ...])

Daily tracer recording the cumulative sales of selected legs in every sample.

LegDetailTracer(leg_ids, *[, priority, name])

Base for daily tracers keeping one value per leg, sample, and day.

Functions

collect_leg_booking_detail(leg_ids)

Build a tracer recording cumulative sales for selected legs.

detail_table(data, name[, legacy_suffix])

Get a per-sample leg detail table, from a tracer or from legacy daily rows.

fig_leg_booking_detail_rake(data, *, leg_id)

process_leg_booking_detail(data)

Get the recorded cumulative sales, one row per trial, sample, and day.

summarize_leg_booking_detail(data)

Summarize the observed cumulative sales for each leg and day.