Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/pyfirestation/propagation/fire_ellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ class FireEllipseType(Enum):


class FireEllipse:
def __init__(self, wind_speed: float, theta: float, *, d: float = 1.0) -> None:
def __init__(self, wind: float, wind_equiv: float, theta: float, *, d: float = 1.0) -> None:
"""Defines the ellipse considered in the fire spread simulation."""
self._mode: FireEllipseType

self._wind_speed: float
self.wind_speed = wind_speed

self.wind_speed = wind_equiv

self._wind: float
self.wind = wind

self.theta = theta
self.d = d

Expand All @@ -45,7 +48,7 @@ def mode(self) -> FireEllipseType:
return self._mode

def update_mode(self) -> None:
if self.wind_speed > 0.2:
if self.wind > 0.2:
self._mode = FireEllipseType.DOUBLE
else:
self._mode = FireEllipseType.SINGLE
Expand Down