LGVMatrices#

class caf.van.lgv_model.LGVMatrices(service, delivery_parcel_stem, delivery_parcel_bush, delivery_grocery, commuting_drivers, commuting_skilled_trades, personal=None)[source]#

Dataclass to store the trip matrices for all segments.

Aligns all the trip matrices to include all zones present in at least one DataFrame, any missing zones are filled with 0 trips for that DataFrame. Calculates combined matrix by summing the individual segment matrices.

Attributes

personal

Contains personal trip matrix outputs from normits, with zone numbers for columns and indices

Methods

__init__(service, delivery_parcel_stem, ...)

asdict()

Return copies of class attributes as a dictionary.

Attributes Documentation

Parameters:
  • service (DataFrame)

  • delivery_parcel_stem (DataFrame)

  • delivery_parcel_bush (DataFrame)

  • delivery_grocery (DataFrame)

  • commuting_drivers (DataFrame)

  • commuting_skilled_trades (DataFrame)

  • personal (DataFrame | None)

personal: DataFrame | None = None#

Contains personal trip matrix outputs from normits, with zone numbers for columns and indices