Commit 90553f5
ENH: Add Eccentricity to Stochastic Simulations (#792)
* 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]>
* ENH: Eccentricities added to the StochasticRocket class
A bug has been corrected in Flight class and an enhancement has been performed in the Rocket class as well
* BUG: thrust eccentricity bug corrected
eccentricity_y was defined by x coordinate and eccentricity_x was defined by y coordinate
* BUG: Undo some Rocket class changes
* ENH: add eccentricities to StochasticRocket
* BUG: fix MonteCarlo eccentricity inputs
* ENH: pylint and ruff recommended changes
* TST: fix tests with eccentricity
---------
Co-authored-by: Gui-FernandesBR <[email protected]>1 parent 7348053 commit 90553f5
File tree
4 files changed
+144
-23
lines changed- rocketpy
- rocket
- simulation
- stochastic
- tests/unit
4 files changed
+144
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
1747 | | - | |
1748 | | - | |
| 1747 | + | |
| 1748 | + | |
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
| |||
1781 | 1781 | | |
1782 | 1782 | | |
1783 | 1783 | | |
1784 | | - | |
| 1784 | + | |
1785 | 1785 | | |
1786 | 1786 | | |
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
| 1790 | + | |
| 1791 | + | |
1793 | 1792 | | |
1794 | 1793 | | |
1795 | | - | |
1796 | | - | |
1797 | | - | |
| 1794 | + | |
| 1795 | + | |
1798 | 1796 | | |
1799 | 1797 | | |
1800 | 1798 | | |
| |||
1811 | 1809 | | |
1812 | 1810 | | |
1813 | 1811 | | |
1814 | | - | |
| 1812 | + | |
1815 | 1813 | | |
1816 | 1814 | | |
1817 | 1815 | | |
1818 | 1816 | | |
1819 | 1817 | | |
1820 | 1818 | | |
1821 | | - | |
| 1819 | + | |
1822 | 1820 | | |
1823 | 1821 | | |
1824 | 1822 | | |
1825 | | - | |
1826 | | - | |
| 1823 | + | |
| 1824 | + | |
1827 | 1825 | | |
1828 | 1826 | | |
1829 | 1827 | | |
| |||
1835 | 1833 | | |
1836 | 1834 | | |
1837 | 1835 | | |
1838 | | - | |
1839 | | - | |
| 1836 | + | |
| 1837 | + | |
1840 | 1838 | | |
1841 | 1839 | | |
1842 | 1840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1469 | 1469 | | |
1470 | 1470 | | |
1471 | 1471 | | |
1472 | | - | |
1473 | | - | |
| 1472 | + | |
| 1473 | + | |
1474 | 1474 | | |
1475 | 1475 | | |
1476 | 1476 | | |
| |||
1856 | 1856 | | |
1857 | 1857 | | |
1858 | 1858 | | |
1859 | | - | |
| 1859 | + | |
1860 | 1860 | | |
1861 | 1861 | | |
1862 | 1862 | | |
1863 | | - | |
| 1863 | + | |
1864 | 1864 | | |
1865 | 1865 | | |
1866 | 1866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
392 | 491 | | |
393 | 492 | | |
394 | 493 | | |
| |||
578 | 677 | | |
579 | 678 | | |
580 | 679 | | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
581 | 687 | | |
582 | 688 | | |
583 | 689 | | |
| |||
609 | 715 | | |
610 | 716 | | |
611 | 717 | | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
612 | 735 | | |
613 | 736 | | |
614 | 737 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
| 334 | + | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
342 | | - | |
| 341 | + | |
| 342 | + | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| |||
0 commit comments