Skip to content

Commit b36089b

Browse files
DOC: updates monte carlo notebooks
1 parent 2b15aa5 commit b36089b

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

docs/notebooks/monte_carlo_analysis/monte_carlo_analysis.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
"We hope you enjoy the flight(s) in this notebook just like everyone in LASC19 did it in real-time!"
2121
]
2222
},
23+
{
24+
"cell_type": "markdown",
25+
"metadata": {},
26+
"source": [
27+
"**NOTE:** There is a new `MonteCarlo` class in RocketPy v1.2.0. This notebook is still here just for reference, but it is recommended to use the new class. See the `Monte Carlo class usage` page in the documentation for more information."
28+
]
29+
},
2330
{
2431
"attachments": {},
2532
"cell_type": "markdown",

docs/notebooks/monte_carlo_analysis/monte_carlo_class_usage.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,12 +840,12 @@
840840
}
841841
],
842842
"source": [
843-
"mc_flight = StochasticFlight(\n",
843+
"stochastic_flight = StochasticFlight(\n",
844844
" flight=test_flight,\n",
845845
" inclination=(84.7, 1), # mean= 84.7, std=1\n",
846846
" heading=(53, 2), # mean= 53, std=2\n",
847847
")\n",
848-
"mc_flight"
848+
"stochastic_flight"
849849
]
850850
},
851851
{
@@ -893,9 +893,9 @@
893893
"source": [
894894
"test_dispersion = MonteCarlo(\n",
895895
" filename=\"monte_carlo_analysis_outputs/monte_carlo_class_example\",\n",
896-
" environment=mc_env,\n",
896+
" environment=stochastic_env,\n",
897897
" rocket=stochastic_rocket,\n",
898-
" flight=mc_flight,\n",
898+
" flight=stochastic_flight,\n",
899899
")"
900900
]
901901
},

docs/notebooks/monte_carlo_analysis/parachute_drop_from_helicopter.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
"This is an advanced use of RocketPy. This notebook wraps RocketPy's methods to run a Monte Carlo analysis and predict probability distributions of the rocket's landing point if realeased from a helicopter. This is a common test used to validate the parachute system before a rocket launch."
1515
]
1616
},
17+
{
18+
"cell_type": "markdown",
19+
"metadata": {},
20+
"source": [
21+
"TODO: Use the new MonteCarlo class in this notebook"
22+
]
23+
},
1724
{
1825
"attachments": {},
1926
"cell_type": "markdown",

0 commit comments

Comments
 (0)