FormulaPy
Core Components
Models
Tracks
Seasons
Data Processing
Data Parsing
Data Tools
Data Sources
Examples
Parsing FIA PDF Data
Embedding IPython Notebook
Development
Testing
Documentation
IPython Notebooks
FormulaPy
Docs
»
Core Components
View page source
Core Components
¶
class
formulapy.core.
Car
(
top_speed0
,
down_force0
,
max_fuel
,
setup=None
,
engine=None
)
[source]
¶
class
formulapy.core.
CarSetup
(
down_force
,
fuel
)
[source]
¶
class
formulapy.core.
Corner
(
speed_in
,
speed_out
,
angle
,
altitude
)
[source]
¶
class
formulapy.core.
DRS_Config
(
drs_zones
)
[source]
¶
class
formulapy.core.
DRS_Zone
(
detect_km
,
activate_km
)
[source]
¶
class
formulapy.core.
Driver
(
name
,
num
,
car
,
seq_wins=0
)
[source]
¶
class
formulapy.core.
Engine
(
hp
,
fail_dist=None
)
[source]
¶
class
formulapy.core.
Event
[source]
¶
class
formulapy.core.
Overtake
[source]
¶
class
formulapy.core.
PitLane
(
inlap_cost
,
outlap_cost
)
[source]
¶
classmethod
fromLength
(
len
,
speed_limit
)
[source]
¶
class
formulapy.core.
Race
(
drivers
,
track
,
temp
,
rain=False
)
[source]
¶
sim
(
)
[source]
¶
class
formulapy.core.
Rain
[source]
¶
class
formulapy.core.
Sector
(
dist
)
[source]
¶
class
formulapy.core.
Tire
(
compound
)
[source]
¶
degradation_dist
(
)
[source]
¶
Depends on driver and compound.
Returns:
time_impact
(
lap
)
[source]
¶
Impact on time on the condition of the tire.
Parameters:
lap
– the lap the simulation is at
Returns:
a factor of the time impact
class
formulapy.core.
Track
(
name
,
laps
,
pitlane
,
fuel_gain
,
sc_prob
,
dnf_factor
,
sc_laps
,
sc_laptime
,
sc_follow
,
pit_window
,
drs_gain
,
drs_wear
,
follow
,
defense_time
,
ot_thresh
,
ot_speed
,
start_sd
,
t_diff
,
rel_wear
,
track_wear
)
[source]
¶
class
formulapy.core.
TrackLayout
(
laps
,
lap_dist=None
,
sectors=None
)
[source]
¶
distance
[source]
¶
class
formulapy.core.
Wreck
[source]
¶