Skip to content

Markets

Market

Bases: BaseModel

Source code in passengersim/config/markets.py
class Market(BaseModel, extra="forbid"):
    orig: str
    """Origin location for this market.

    This is commonly a three letter airport code, but it need not be limited
    to airports.  It can be any location that is relevant to the simulation.

    If using 'places' for locations, this should match the 'name' field of
    a Place object."""

    dest: str
    """Destination location for this market.

    This is commonly a three letter airport code, but it need not be limited
    to airports.  It can be any location that is relevant to the simulation.

    If using 'places' for locations, this should match the 'name' field of
    a Place object."""

    demand_multiplier: float = 1.0
    """Multiplier on base demand for all demand segments in this market."""

    @property
    def identifier(self) -> str:
        return f"{self.orig}~{self.dest}"

demand_multiplier class-attribute instance-attribute

demand_multiplier: float = 1.0

Multiplier on base demand for all demand segments in this market.

dest instance-attribute

dest: str

Destination location for this market.

This is commonly a three letter airport code, but it need not be limited to airports. It can be any location that is relevant to the simulation.

If using 'places' for locations, this should match the 'name' field of a Place object.

identifier property

identifier: str

orig instance-attribute

orig: str

Origin location for this market.

This is commonly a three letter airport code, but it need not be limited to airports. It can be any location that is relevant to the simulation.

If using 'places' for locations, this should match the 'name' field of a Place object.