From b11ad3cd83c6025545a74244fb8dab0a0ddb67d4 Mon Sep 17 00:00:00 2001 From: Pedro Bressan <87212571+phmbressan@users.noreply.github.com> Date: Sat, 25 Oct 2025 23:09:42 +0200 Subject: [PATCH] MNT: allow for exporting of non apogee flights. --- CHANGELOG.md | 1 + rocketpy/plots/monte_carlo_plots.py | 2 +- rocketpy/simulation/flight.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f0ffb99f..e2c035e4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ Attention: The newest changes should be on top --> ### Changed +- MNT: allow for exporting of non apogee flights. [#863](https://github.com/RocketPy-Team/RocketPy/pull/863) - MNT: bumps min python version to 3.10 [#857](https://github.com/RocketPy-Team/RocketPy/pull/857) - DOC: Update docs dependencies and sub dependencies [#851](https://github.com/RocketPy-Team/RocketPy/pull/851) - MNT: extract flight data exporters [#845](https://github.com/RocketPy-Team/RocketPy/pull/845) diff --git a/rocketpy/plots/monte_carlo_plots.py b/rocketpy/plots/monte_carlo_plots.py index d602b3a46..22d320b6b 100644 --- a/rocketpy/plots/monte_carlo_plots.py +++ b/rocketpy/plots/monte_carlo_plots.py @@ -1,6 +1,6 @@ import matplotlib.pyplot as plt -from matplotlib.transforms import offset_copy import numpy as np +from matplotlib.transforms import offset_copy from ..tools import generate_monte_carlo_ellipses, import_optional_dependency diff --git a/rocketpy/simulation/flight.py b/rocketpy/simulation/flight.py index 27043b892..a38be7d93 100644 --- a/rocketpy/simulation/flight.py +++ b/rocketpy/simulation/flight.py @@ -1130,6 +1130,7 @@ def __init_solution_monitors(self): self.out_of_rail_time_index = 0 self.out_of_rail_state = np.array([0]) self.apogee_state = np.array([0]) + self.apogee = 0 self.apogee_time = 0 self.x_impact = 0 self.y_impact = 0