Skip to content

Commit 59ebbe6

Browse files
committed
ENH: Reducing number of statements for pylint test
1 parent a2b9c6e commit 59ebbe6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rocketpy/rocket/parachute.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,9 @@ def __init__(
221221
- 0.25975 * self.porosity**2
222222
+ 1.2626 * self.porosity**3
223223
)
224-
alpha, beta = self.noise_corr
225-
self.noise_function = lambda: alpha * self.noise_signal[-1][
224+
self.noise_function = lambda: self.noise_corr[0] * self.noise_signal[-1][
226225
1
227-
] + beta * np.random.normal(noise[0], noise[1])
226+
] + self.noise_corr[1] * np.random.normal(noise[0], noise[1])
228227

229228
self.prints = _ParachutePrints(self)
230229

0 commit comments

Comments
 (0)