Skip to content

Commit

Permalink
DOC: improve monte Carlo documentation files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Mar 13, 2024
1 parent 6d96caa commit 7e30c76
Show file tree
Hide file tree
Showing 26 changed files with 164 additions and 24 deletions.
9 changes: 9 additions & 0 deletions docs/reference/classes/monte_carlo/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Monte Carlo Analysis
====================

.. toctree::
:maxdepth: 1
:caption: Contents:

monte_carlo
Stochastic models <stochastic_models/index>
5 changes: 5 additions & 0 deletions docs/reference/classes/monte_carlo/monte_carlo.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Monte Carlo Class
-----------------

.. autoclass:: rocketpy.simulation.MonteCarlo
:members:
20 changes: 20 additions & 0 deletions docs/reference/classes/monte_carlo/stochastic_models/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Stochastic Models
=================

.. toctree::
:maxdepth: 1
:caption: Contents:

stochastic_model
stochastic_environment
stochastic_motor_model
stochastic_solid_motor
stochastic_generic_motor
stochastic_nose_cone
stochastic_trapezoidal_fins
stochastic_elliptical_fins
stochastic_tail
stochastic_rail_buttons
stochastic_rocket
stochastic_parachute
stochastic_flight
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Elliptical Fins
--------------------------

.. autoclass:: rocketpy.stochastic.StochasticEllipticalFins
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Environment
----------------------

.. autoclass:: rocketpy.stochastic.StochasticEnvironment
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Flight
-----------------

.. autoclass:: rocketpy.stochastic.StochasticFlight
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Generic Motor
------------------------

.. autoclass:: rocketpy.stochastic.StochasticGenericMotor
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _stochastic_model:

Stochastic Model
-----------------

.. autoclass:: rocketpy.stochastic.StochasticModel
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Motor Model
----------------------

.. autoclass:: rocketpy.stochastic.stochastic_motor_model.StochasticMotorModel
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Nose Cone
--------------------

.. autoclass:: rocketpy.stochastic.StochasticNoseCone
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Parachute
--------------------

.. autoclass:: rocketpy.stochastic.StochasticParachute
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Rail Buttons
-----------------------

.. autoclass:: rocketpy.stochastic.StochasticRailButtons
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Rocket
-----------------

.. autoclass:: rocketpy.stochastic.StochasticRocket
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Solid Motor
----------------------

.. autoclass:: rocketpy.stochastic.StochasticSolidMotor
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Tail
---------------

.. autoclass:: rocketpy.stochastic.StochasticTail
:members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Stochastic Trapezoidal Fins
---------------------------

.. autoclass:: rocketpy.stochastic.StochasticTrapezoidalFins
:members:
1 change: 1 addition & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This reference manual details functions, modules, methods and attributes include
classes/Flight
Utilities <classes/utils/index>
classes/EnvironmentAnalysis
Monte Carlo Analysis <classes/monte_carlo/index>

.. toctree::
:maxdepth: 2
Expand Down
5 changes: 3 additions & 2 deletions rocketpy/plots/monte_carlo_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ def ellipses(
The limits of the y axis. The default is (-3000, 3000).
save : bool
Whether save the output into a file or not. The default is False.
If True, the .show() method won't be called, and the image will be
saved with the same name as filename attribute, using a .png format.
If True, the image will not be displayed, and the .savefig() method
will be called. If False, the image will be displayed, and the
.show() method will be called.
Returns
-------
Expand Down
35 changes: 25 additions & 10 deletions rocketpy/stochastic/stochastic_aero_surfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class is used to receive a NoseCone object and information about the
dispersion of its parameters and generate a random nose cone object based
on the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : NoseCone
Expand Down Expand Up @@ -51,8 +55,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
stochastic models.
:ref:`stochastic_model`
Parameters
----------
Expand Down Expand Up @@ -120,6 +123,10 @@ class StochasticTrapezoidalFins(StochasticModel):
the dispersion of its parameters and generate a random trapezoidal fins
object based on the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : TrapezoidalFins
Expand Down Expand Up @@ -171,8 +178,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
stochastic models.
:ref:`stochastic_model`
Parameters
----------
Expand Down Expand Up @@ -251,6 +257,10 @@ class StochasticEllipticalFins(StochasticModel):
the dispersion of its parameters and generate a random elliptical fins
object based on the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : EllipticalFins
Expand Down Expand Up @@ -290,8 +300,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
stochastic models.
:ref:`stochastic_model`
Parameters
----------
Expand Down Expand Up @@ -356,6 +365,10 @@ class StochasticTail(StochasticModel):
parameters and generate a random tail object based on the provided
information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : Tail
Expand Down Expand Up @@ -388,8 +401,7 @@ def __init__(
See Also
--------
TODO: This should link to somewhere that explains how inputs works in
stochastic models.
:ref:`stochastic_model`
Parameters
----------
Expand Down Expand Up @@ -443,6 +455,10 @@ class is used to receive a RailButtons object and information about the
dispersion of its parameters and generate a random rail buttons object based
on the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : RailButtons
Expand Down Expand Up @@ -470,8 +486,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
stochastic models.
:ref:`stochastic_model`
Parameters
----------
Expand Down
7 changes: 5 additions & 2 deletions rocketpy/stochastic/stochastic_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class is used to receive a Environment object and information about the
dispersion of its parameters and generate a random environment object based
on the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : Environment
Expand Down Expand Up @@ -53,8 +57,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
Stochastic models.
:ref:`stochastic_model`
Parameters
----------
Expand Down
7 changes: 5 additions & 2 deletions rocketpy/stochastic/stochastic_flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class is used to receive a Flight object and information about the
dispersion of its parameters and generate a random flight object based on
the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
flight : Flight
Expand Down Expand Up @@ -44,8 +48,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
Stochastic models.
:ref:`stochastic_model`
Parameters
----------
Expand Down
7 changes: 5 additions & 2 deletions rocketpy/stochastic/stochastic_generic_motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class StochasticGenericMotor(StochasticMotorModel):
the dispersion of its parameters and generate a random generic motor object
based on the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : GenericMotor
Expand Down Expand Up @@ -96,8 +100,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
Stochastic Models.
:ref:`stochastic_model`
Parameters
----------
Expand Down
4 changes: 4 additions & 0 deletions rocketpy/stochastic/stochastic_motor_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
class StochasticMotorModel(StochasticModel):
"""Stochastic Motor Model class that inherits from StochasticModel. This
class is used to standardize the input of the motor stochastic model.
See Also
--------
:ref:`stochastic_model`
"""

def __init__(self, object, **kwargs):
Expand Down
7 changes: 5 additions & 2 deletions rocketpy/stochastic/stochastic_parachute.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class is used to receive a Parachute object and information about the
dispersion of its parameters and generate a random parachute object based
on the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : Parachute
Expand Down Expand Up @@ -46,8 +50,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
Stochastic Models.
:ref:`stochastic_model`
Parameters
----------
Expand Down
7 changes: 5 additions & 2 deletions rocketpy/stochastic/stochastic_rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class is used to receive a Rocket object and information about the
dispersion of its parameters and generate a random rocket object based on
the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : Rocket
Expand Down Expand Up @@ -113,8 +117,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
Stochastic models.
:ref:`stochastic_model`
Parameters
----------
Expand Down
7 changes: 5 additions & 2 deletions rocketpy/stochastic/stochastic_solid_motor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class is used to receive a SolidMotor object and information about the
dispersion of its parameters and generate a random solid motor object based
on the provided information.
See Also
--------
:ref:`stochastic_model`
Attributes
----------
object : SolidMotor
Expand Down Expand Up @@ -110,8 +114,7 @@ def __init__(
See Also
--------
This should link to somewhere that explains how inputs works in
Stochastic Models.
:ref:`stochastic_model`
Parameters
----------
Expand Down

0 comments on commit 7e30c76

Please sign in to comment.