4.14. project_fleet module

project_fleet.create_fleet_df(settings, input_df, options_dict, adj_dict, *args_with_tech)[source]
Parameters:

settings: The SetInputs class.

input_df: DataFrame; the raw fleet input data (e.g., from MOVES).

options_dict: Dictionary; provides the option IDs and names of options being run.

adj_dict: Dictionary; provides any adjustments to be made to the data contained in input_df.

args_with_tech: String(s); the attributes to be adjusted.

Returns:

A DataFrame of the MOVES inputs with necessary MOVES adjustments made according to the MOVES adjustments input file. The DataFrame will also add optionID/sourceTypeID/regClassID/fuelTypeID names and will use only those options included in the options.csv input file.

project_fleet.regclass_vehicles(fleet_df)[source]
Parameters:

fleet_df: A DataFrame of the project fleet.

Returns:

A series of unique vehicles where a vehicle is a ((regClass, fuelType), alt) vehicle.

project_fleet.sourcetype_vehicles(fleet_df)[source]
Parameters:

fleet_df: A DataFrame of the project fleet.

Returns:

A series of unique vehicles where a vehicle is a ((sourceType, regClass, fuelType), alt) vehicle.