Skip to content

Conversation

@Lucas-Prates
Copy link
Contributor

No description provided.

Gui-FernandesBR and others added 21 commits March 27, 2025 06:14
)

* ENH: Support for the RSE file format has been added to the library. The import_rse method in the Abstract Motor class and the load_from_rse_file method in the GenericMotor class are now available. With this update, the library natively supports Rock Sim software data, eliminating the need for users to manually convert motor files. The implementation was based on the import_eng and load_from_eng_file methods, utilizing Python's standard XML library.

* ENH: Adding tests to the methods of .rse file treatment.

* ENH: fixing mistakes on the method and test file

* MNT: Running ruff

* MNT: Adding the PR to CHANGELOG.md
* ENH: added .rpy file functionality (see issue 668)

This commit add 'save_to_rpy' and 'load_from_rpy' functions, that allows saving and loading flights.

* MNT: adjusting minor changes to .rpy functions and tests.

Formatted docstrings correctly.
Reverted duplication of `test_encoding.py` files.
Version warning will be called when loaded version is more recent.

* MNT: incorporating previous comments

Change file management from os to Path
Adjust docstrings

* DOC: Added comment about outputs in `to_dict` method

* MNT: Refactoring `RocketPyDecoder` unpacking operation and other small adjustments

* DOC: update changelog

* STY: formatted according to ruff

* MNT: changing `str | Path` operation to support Python 3.9

* MNT: fixed trailing commas on .rpy and added shield against `ruff` formatting .rpy and .json files

* MNT: fixing error related to `test_flight_save_load_no_resimulate`

When `include_outputs` were set to `True`, it would try to include the additional data into the flight, breaking the test

* MNT: fixing a typo and adding comment on test coverage

---------

Co-authored-by: Gui-FernandesBR <[email protected]>
* ENH: implementing a draft version of the Multivarite Rejectio Sampler (MRS).

* MNT: quick notebook to test MRS during development

* MNT: refactoring class to match review suggestions

* ENH: add comparison prints, plots and ellipses to MonteCarlo and finally checks in MRS

* MNT: add MultivariateRejectionSampler class to inits and apply format

* DOC: writting .rst documentation for MRS

* MNT: adding pylint flags to skip checks

* DOC: completing missing sections in mrs.rst

* DOC: add changelog and apply sugestions in MRS class

* DOC: apply suggestions to the MRS.rst

* MNT: use Union instead of | for type hinting since we have to support python3.9

* TST: adding unit and integration tests to MRS

* MNT: use pylint flag to fix linter

* TST: adding tests to MonteCarlo comparison features

* MNT: applying suggestions in .rst, better handling nested variables in MRS and applying linters

* MNT: removing TODO comments from monte_carlo_plots

* MNT: remove useless TODO

* MNT: inserting pragmas for no cover and resolving changelog conflict
* 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: Add pressure corrections for thrust in SolidMotor

The thrust generated by a SolidMotor is now adjusted for the atmospheric pressure. To achieve that, a new attribute, 'vacuum_thrust', has been created. The 'net_thrust' is the result of 'vacuum_thrust' minus the atmospheric pressure multiplied by the nozzle area.

* ENH: pylint recommendations done

* ENH: net thrust method extended to the rest of the motor classes

* BUG: __post_processed_variables inconsistent array

* ENH: ruff reformatting

* Update rocketpy/motors/motor.py

Co-authored-by: Gui-FernandesBR <[email protected]>

* ENH: Avoid breaking change

* ENH: Pressure Thrust method added

* BUG: call to the thrust function wrong

* BUG: pressure thrust evaluated when motor is turned off

* ENH: CHANGELOG updated

* DOC: definition of exhaust velocity improved

---------

Co-authored-by: Gui-FernandesBR <[email protected]>
* BUG: fix parachute bug by setting time_overshoot to base flight when it is None

* MNT: update changelog
* BUG: fix wrong phi initialization for nose_to_tail rockets

* TST: add equivalence test for csys inversion

* DEV: changelog

* DEV: changelog

* MNT: lint flight.py

* TST: increase atol for MAC

* TST: increase atol for MAC

* TST: simplify test
…811)

* MNT: rename rotation matrix attribute

* TST: make ideal sensor tests more strict regarding different axes

* MNT: fix rebase errors

* TST: correct matrix transpose

* DEV: changelog

* DOC: fix some axes

* TST: fix gyro detailed test
* ENH: first implementation of CustomSampler

* TST: implementing tests for CustomSampler and making small corrections

* DOC: creating documentation for CustomSampler

* DEV: changelog

---------

Co-authored-by: Mateus Stano Junqueira <[email protected]>
Co-authored-by: MateusStano <[email protected]>
* ENH: support for ND arithmetical operations for Function.

* MNT: add source type enumeration to Function object.

* MNT: apply review suggestions to variable naming.

* MNT: solve Function code coverage for exceptions.

* MNT: correct CHANGELOG rebasing mistake.
* ENH: add ```env``` method to ```EnvironmentAnalysis``` class

This method allows the user to create a ```Environment``` object from the ```EnvironmentAnalysis``` object

* ENH: fixing non-bijective pressure profiles

* DOC: adding docstring to get_environemnt_object

* TST: adding a test for get_environement_object

* DOC: updating the CHANGELOG

* ENH: converting the units into SI for Environment object

* ENH: using numpy.percentile to recalculate the pressure profile

* DOC: changing method name from get_environment_object to create_environment_object

* DOC: fixing the test name to match method name

* TST: fixing the method call in the test
@codecov
Copy link

codecov bot commented May 16, 2025

Codecov Report

Attention: Patch coverage is 86.91729% with 87 lines in your changes missing coverage. Please review.

Project coverage is 80.06%. Comparing base (4df0b38) to head (b9a164f).
Report is 22 commits behind head on master.

Files with missing lines Patch % Lines
rocketpy/mathutils/function.py 93.13% 16 Missing ⚠️
rocketpy/plots/monte_carlo_plots.py 80.00% 16 Missing ⚠️
rocketpy/environment/environment_analysis.py 8.33% 11 Missing ⚠️
rocketpy/prints/monte_carlo_prints.py 57.69% 11 Missing ⚠️
...ketpy/simulation/multivariate_rejection_sampler.py 89.81% 11 Missing ⚠️
rocketpy/motors/motor.py 85.00% 9 Missing ⚠️
rocketpy/stochastic/stochastic_model.py 75.00% 7 Missing ⚠️
rocketpy/simulation/monte_carlo.py 60.00% 4 Missing ⚠️
rocketpy/sensors/sensor.py 75.00% 1 Missing ⚠️
rocketpy/stochastic/stochastic_flight.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #819      +/-   ##
==========================================
+ Coverage   79.11%   80.06%   +0.95%     
==========================================
  Files          96       98       +2     
  Lines       11575    12042     +467     
==========================================
+ Hits         9158     9642     +484     
+ Misses       2417     2400      -17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-project-automation github-project-automation bot moved this from Backlog to Next Version in LibDev Roadmap May 16, 2025
@Lucas-Prates Lucas-Prates merged commit 3479bda into master May 16, 2025
17 of 18 checks passed
@github-project-automation github-project-automation bot moved this from Next Version to Closed in LibDev Roadmap May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

8 participants