pybtls.garage.read.read_garage_file#
- read_garage_file(garage_path, garage_format, **kwargs)[source]#
Read a .txt garage file.
- Parameters:
garage_path (Path) – The path of the garage file.
garage_format (Literal[1,2,3,4]) –
The format of the .txt garage file.
1: CASTOR format.
2: BEDIT format.
3: DITIS format.
4: MON format.
- Keyword Arguments:
vehicle_class_type (Literal["axle", "pattern"], optional) –
axle: Categorise vehicle by axle.
pattern (Default): Categorise vehicle by pattern.
- Returns:
vehicle_list – A list of Vehicle objects.
- Return type:
list[_Vehicle]