@@ -92,6 +92,13 @@ class Parachute:
9292 Function of noisy_pressure_signal.
9393 Parachute.clean_pressure_signal_function : Function
9494 Function of clean_pressure_signal.
95+ Parachute.parachute_radius : float
96+ Radius of the inflated parachute in meters.
97+ Parachute.parachute_height : float
98+ Height of the inflated parachute in meters.
99+ Parachute.porosity : float
100+ Porosity of the parachute material, which is a measure of how much air can
101+ pass through the parachute material.
95102 """
96103
97104 def __init__ (
@@ -158,26 +165,22 @@ def __init__(
158165 passed to the trigger function. Default value is ``(0, 0, 0)``.
159166 Units are in Pa.
160167 parachute_radius : float, optional
161- Radius of the inflated parachute in meters . Default value is 1.5.
168+ Radius of the inflated parachute. Default value is 1.5.
162169 Units are in meters.
163170 parachute_height : float, optional
164- Height of the inflated parachute in meters .
165- Default value is the radius parachute. Units are in meters.
171+ Height of the inflated parachute. Default value is the radius parachute .
172+ Units are in meters.
166173 porosity : float, optional
167174 Porosity of the parachute material, which is a measure of how much air can
168- pass through the parachute material. Default value is 0.0432.
175+ pass through the parachute material.
176+ Default value is 0.0432 (for consistency with previous versions).
169177 """
170178 self .name = name
171179 self .cd_s = cd_s
172180 self .trigger = trigger
173181 self .sampling_rate = sampling_rate
174182 self .lag = lag
175183 self .noise = noise
176- self .parachute_radius = parachute_radius
177- if parachute_height is None :
178- parachute_height = parachute_radius
179- self .parachute_height = parachute_height
180- self .porosity = porosity
181184 self .noise_signal = [[- 1e-6 , np .random .normal (noise [0 ], noise [1 ])]]
182185 self .noisy_pressure_signal = []
183186 self .clean_pressure_signal = []
@@ -187,6 +190,11 @@ def __init__(
187190 self .clean_pressure_signal_function = Function (0 )
188191 self .noisy_pressure_signal_function = Function (0 )
189192 self .noise_signal_function = Function (0 )
193+ self .parachute_radius = parachute_radius
194+ if parachute_height is None :
195+ parachute_height = parachute_radius
196+ self .parachute_height = parachute_height
197+ self .porosity = porosity
190198
191199 alpha , beta = self .noise_corr
192200 self .noise_function = lambda : alpha * self .noise_signal [- 1 ][
0 commit comments