Commit 7348053
BUG: fix the wind velocity factors usage and better visualization of uniform distributions in Stochastic Classes (#783)
* wind factor bug corrected
the wind factor wasn't applied to the env.wind_velocity properties
* BUG: StochasticModel visualize attributes of a uniform distribution
It showed the nominal and the standard deviation values and it doesn't make sense in a uniform distribution. In a np.random.uniform the 'nominal value' is the lower bound of the distribution, and the 'standard deviation' value is the upper bound. Now, a new condition has been added for the uniform distributions where the mean and semi range are calculated and showed. This way the visualize_attribute function will show the whole range where the random values are uniformly taken in
* variable names corrections
* Corrections requested by the pylint test
* ENH: more intuitive uniform distribution display in StochasticModel
Co-authored-by: MateusStano <[email protected]>
---------
Co-authored-by: MateusStano <[email protected]>1 parent d2f89ba commit 7348053
File tree
2 files changed
+14
-5
lines changed- rocketpy/stochastic
2 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
514 | 514 | | |
515 | 515 | | |
516 | 516 | | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
522 | 530 | | |
523 | 531 | | |
524 | 532 | | |
| |||
0 commit comments