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

Tyre radius possible bug #5

@dimitriskomnos

Description

@dimitriskomnos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions