Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
"Metrum",
"modindex",
"mult",
"multiprocess",
"Mumma",
"NASADEM",
"nbformat",
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Attention: The newest changes should be on top -->

### Added

- ENH: Parallel mode for monte-carlo simulations 2 [#768](https://github.com/RocketPy-Team/RocketPy/pull/768)
- DOC: ASTRA Flight Example [#770](https://github.com/RocketPy-Team/RocketPy/pull/770)

### Changed
Expand Down
67 changes: 23 additions & 44 deletions docs/notebooks/monte_carlo_analysis/monte_carlo_class_usage.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ env-analysis = [
]

monte-carlo = [
"imageio",
"imageio",
"multiprocess>=0.70",
"statsmodels",
"prettytable",
]
Expand Down
1 change: 1 addition & 0 deletions requirements-optional.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ ipywidgets>=7.6.3
jsonpickle
timezonefinder
imageio
multiprocess>=0.70
statsmodels
prettytable
6 changes: 6 additions & 0 deletions rocketpy/rocket/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def remove(self, component):
"""
for index, comp in enumerate(self._components):
if comp.component == component:
self.__component_list.pop(index)
self.__position_list.pop(index)
self._components.pop(index)
break
else:
Expand All @@ -168,6 +170,8 @@ def pop(self, index=-1):
component : Any
The component removed from the list of components.
"""
self.__component_list.pop(index)
self.__position_list.pop(index)
return self._components.pop(index)

def clear(self):
Expand All @@ -177,6 +181,8 @@ def clear(self):
-------
None
"""
self.__component_list.clear()
self.__position_list.clear()
self._components.clear()

def sort_by_position(self, reverse=False):
Expand Down
Loading