From c0b052b17566eeb8715d068cae8d4f932c16c13e Mon Sep 17 00:00:00 2001 From: Lucas de Oliveira Prates Date: Fri, 16 May 2025 23:45:59 +0200 Subject: [PATCH 1/8] REL: update to v1.10.0 --- CHANGELOG.md | 13 ++++++++++++- docs/conf.py | 2 +- pyproject.toml | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fca866b79..28586a1b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/). +### Added + + +### Changed + + +### Fixed + + +## [v1.10.0] - 2025-05-16 + ### Added - ENH: Support for ND arithmetic in Function class. [#810] (https://github.com/RocketPy-Team/RocketPy/pull/810) - ENH: allow users to provide custom samplers [#803](https://github.com/RocketPy-Team/RocketPy/pull/803) @@ -50,7 +61,7 @@ Attention: The newest changes should be on top --> - BUG: Wrong Phi Initialization For nose_to_tail Rockets [#809](https://github.com/RocketPy-Team/RocketPy/pull/809) - BUG: Fix StochasticFlight time_overshoot None bug [#805](https://github.com/RocketPy-Team/RocketPy/pull/805) -## v1.9.0 - 2025-03-24 +## [v1.9.0] - 2025-03-24 ### Added diff --git a/docs/conf.py b/docs/conf.py index 209a9c810..c76d990da 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,7 @@ author = "RocketPy Team" # The full version, including alpha/beta/rc tags -release = "1.9.0" +release = "1.10.0" # -- General configuration --------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index 842b519e9..f471085ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "rocketpy" -version = "1.9.0" +version = "1.10.0" description="Advanced 6-DOF trajectory simulation for High-Power Rocketry." dynamic = ["dependencies"] readme = "README.md" From dac093426ecc27aca8fdd1caac18b5b88f0f6d41 Mon Sep 17 00:00:00 2001 From: Lucas de Oliveira Prates Date: Fri, 16 May 2025 23:50:21 +0200 Subject: [PATCH 2/8] REL: update to v1.10.0 --- docs/user/installation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user/installation.rst b/docs/user/installation.rst index 844edd2b8..d19a42ff3 100644 --- a/docs/user/installation.rst +++ b/docs/user/installation.rst @@ -19,7 +19,7 @@ If you want to choose a specific version to guarantee compatibility, you may ins .. code-block:: shell - pip install rocketpy==1.9.0 + pip install rocketpy==1.10.0 Optional Installation Method: ``conda`` From 809b7e0d3aedb6729731fe88e52f5e5415b796c1 Mon Sep 17 00:00:00 2001 From: Lucas de Oliveira Prates Date: Sat, 17 May 2025 00:11:38 +0200 Subject: [PATCH 3/8] BUG: fix version comparison bug in utilities test --- rocketpy/utilities.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rocketpy/utilities.py b/rocketpy/utilities.py index 06e0582eb..3ed81df41 100644 --- a/rocketpy/utilities.py +++ b/rocketpy/utilities.py @@ -10,6 +10,7 @@ import matplotlib.pyplot as plt import numpy as np +from packaging import version as packaging_version from scipy.integrate import solve_ivp from ._encoders import RocketPyDecoder, RocketPyEncoder @@ -750,7 +751,9 @@ def load_from_rpy(filename: str, resimulate=False): with open(filename, "r") as f: data = json.load(f) - if data["version"] > version("rocketpy"): + if packaging_version.parse(data["version"]) > packaging_version.parse( + version("rocketpy") + ): warnings.warn( "The file was saved in an updated version of", f"RocketPy (v{data['version']}), the current", From b559c5900549778324bec44e1a72193d821d4b34 Mon Sep 17 00:00:00 2001 From: Gabriel Barberini Date: Sat, 31 May 2025 19:55:45 -0300 Subject: [PATCH 4/8] Update README.md adds deepwiki badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 15127e966..3eb63c9a6 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ [![Instagram](https://img.shields.io/badge/Instagram-E4405F?style=flat&logo=instagram&logoColor=white)](https://www.instagram.com/rocketpyteam) [![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=flat&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/rocketpy) [![DOI](https://img.shields.io/badge/DOI-10.1061%2F%28ASCE%29AS.1943--5525.0001331-blue.svg)](http://dx.doi.org/10.1061/%28ASCE%29AS.1943-5525.0001331) +[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/RocketPy-Team/RocketPy) # RocketPy From acad418b31bc18579ecdc4db5ec343394c0d9731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6rkem=20Dilbaz?= Date: Mon, 23 Jun 2025 12:48:21 +0300 Subject: [PATCH 5/8] ENH: See #529 changed the name in order to prevent confusion --- monte_carlo_test.errors.txt | 0 monte_carlo_test.inputs.txt | 0 monte_carlo_test.outputs.txt | 0 rocketpy/simulation/flight.py | 22 ++++++++++++++++++++-- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 monte_carlo_test.errors.txt create mode 100644 monte_carlo_test.inputs.txt create mode 100644 monte_carlo_test.outputs.txt diff --git a/monte_carlo_test.errors.txt b/monte_carlo_test.errors.txt new file mode 100644 index 000000000..e69de29bb diff --git a/monte_carlo_test.inputs.txt b/monte_carlo_test.inputs.txt new file mode 100644 index 000000000..e69de29bb diff --git a/monte_carlo_test.outputs.txt b/monte_carlo_test.outputs.txt new file mode 100644 index 000000000..e69de29bb diff --git a/rocketpy/simulation/flight.py b/rocketpy/simulation/flight.py index ce728dafe..2e3eb5598 100644 --- a/rocketpy/simulation/flight.py +++ b/rocketpy/simulation/flight.py @@ -2776,7 +2776,25 @@ def direction_cosine_matrixes(self): Kt = np.array([Matrix.transformation(row).transpose for row in stacked_arrays]) return Kt - + + @cached_property + def acceleration_earth_to_body_frame(self): + """Acceleration in body frame obtained using inertial frame acceleration + at each time step.""" + Kt = self.direction_cosine_matrixes + + acceleration_earth = np.array( + [ + self.ax.y_array, + self.ay.y_array, + self.az.y_array, + ] + ).transpose() + acceleration_body = np.squeeze( + np.matmul(Kt, acceleration_earth[:, :, np.newaxis]) + ) + return acceleration_body + @cached_property def stream_velocity_body_frame(self): """Stream velocity array at the center of dry mass in the body frame at @@ -2793,7 +2811,7 @@ def stream_velocity_body_frame(self): np.matmul(Kt, stream_velocity[:, :, np.newaxis]) ) return stream_velocity_body - + @funcify_method("Time (s)", "Angle of Attack (°)", "spline", "constant") def angle_of_attack(self): """Angle of attack of the rocket with respect to the freestream From c2e611d5c68c6f603d373c87e345ae6a257788e3 Mon Sep 17 00:00:00 2001 From: gdilbaz Date: Mon, 23 Jun 2025 18:30:34 +0300 Subject: [PATCH 6/8] Delete monte_carlo_test.outputs.txt --- monte_carlo_test.outputs.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 monte_carlo_test.outputs.txt diff --git a/monte_carlo_test.outputs.txt b/monte_carlo_test.outputs.txt deleted file mode 100644 index e69de29bb..000000000 From 3d3f066395431df6a69b0247c41fd3daf6189f7d Mon Sep 17 00:00:00 2001 From: gdilbaz Date: Mon, 23 Jun 2025 18:31:01 +0300 Subject: [PATCH 7/8] Delete monte_carlo_test.inputs.txt --- monte_carlo_test.inputs.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 monte_carlo_test.inputs.txt diff --git a/monte_carlo_test.inputs.txt b/monte_carlo_test.inputs.txt deleted file mode 100644 index e69de29bb..000000000 From 6e812e23ab9615230cc382e68c0a479dbd725ed1 Mon Sep 17 00:00:00 2001 From: gdilbaz Date: Mon, 23 Jun 2025 18:34:16 +0300 Subject: [PATCH 8/8] Delete monte_carlo_test.errors.txt --- monte_carlo_test.errors.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 monte_carlo_test.errors.txt diff --git a/monte_carlo_test.errors.txt b/monte_carlo_test.errors.txt deleted file mode 100644 index e69de29bb..000000000