Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Tyre radius possible bug #5

Open
dimitriskomnos opened this issue Oct 12, 2020 · 0 comments
Open

Tyre radius possible bug #5

dimitriskomnos opened this issue Oct 12, 2020 · 0 comments

Comments

@dimitriskomnos
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant