This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Description
Loading from the Eurosegment file an input,
in case it is not electric, the tyre radius is calculated as a fixed value,
no matter what is the input in the csv file.
Please check this (line 141):
|
df.loc[df['fuel_type'] == 'petrol', 'ignition_type'] = 'positive' |
|
df.loc[df['fuel_type'] == 'diesel', 'ignition_type'] = 'compression' |
|
b = df['fuel_type'] == 'electricity' |
|
c = df['fuel_type'] != 'electricity' |
|
df.loc[b, ['ignition_type']] = 'electricity' |
|
df.loc[b, ['gear_box_ratios']] = 1 |
|
df.loc[b, ['tyre_radius']] /= 1000 # meters. |
|
df.loc[c, ['tyre_radius']] = (24.5 / 2 * 2.54) / 100 # meters. |