Skip to content

Commit a2b9c6e

Browse files
committed
ENH: Adding initial_radius parameter for stochastic parachute
1 parent ff4e7fa commit a2b9c6e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rocketpy/stochastic/stochastic_parachute.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def __init__(
4747
noise=None,
4848
radius=None,
4949
height=None,
50+
initial_radius=None,
5051
porosity=None,
5152
):
5253
"""Initializes the Stochastic Parachute class.
@@ -76,6 +77,8 @@ def __init__(
7677
Radius of the parachute in meters.
7778
height : tuple, list, int, float
7879
Height of the parachute in meters.
80+
initial_radius : tuple, list, int, float
81+
Initial radius of the parachute on deployment in meters.
7982
porosity : tuple, list, int, float
8083
Porosity of the parachute.
8184
"""
@@ -87,6 +90,7 @@ def __init__(
8790
self.noise = noise
8891
self.radius = radius
8992
self.height = height
93+
self.initial_radius = initial_radius
9094
self.porosity = porosity
9195

9296
self._validate_trigger(trigger)
@@ -101,6 +105,7 @@ def __init__(
101105
name=None,
102106
radius=radius,
103107
height=height,
108+
initial_radius=initial_radius,
104109
porosity=porosity,
105110
)
106111

0 commit comments

Comments
 (0)