Skip to content

Conversation

@Gui-FernandesBR
Copy link
Member

Several errors broke the documentations. I"m trying to fix it with this PR.

@Gui-FernandesBR Gui-FernandesBR requested a review from a team as a code owner December 4, 2025 23:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes documentation build errors by addressing import ordering, docstring formatting, and documentation file issues.

Key Changes

  • Alphabetized imports across multiple files to comply with isort requirements
  • Reformatted docstring for calculate_rail_button_bending_moments method to better follow NumPy style guide conventions
  • Added FlightComparator to public API exports with an __all__ definition in rocketpy/simulation/__init__.py
  • Fixed indentation and file paths in RST documentation

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/unit/test_plots.py Reordered imports alphabetically (matplotlib.animation before other imports)
rocketpy/simulation/flight.py Moved calculate_rail_button_bending_moments method to better location and reformatted docstring to follow NumPy conventions with proper sections (Returns, Notes, Examples) and LaTeX math notation
rocketpy/simulation/init.py Added FlightComparator import and defined __all__ list for explicit API exports
rocketpy/plots/tank_plots.py Alphabetized imports within groups
rocketpy/plots/motor_plots.py Alphabetized imports within groups
docs/user/flight_comparator.rst Fixed indentation for code blocks and corrected file paths from ../data/calisto/ to ../data/rockets/calisto/, removed trailing whitespace

Comment on lines +10 to +12
"FlightDataExporter",
"FlightDataImporter",
"FlightComparator",
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of items in __all__ should match the order of imports for consistency. Currently, FlightComparator appears second in the imports (line 2) but fourth in __all__ (line 12). Consider reordering __all__ to:

__all__ = [
    "Flight",
    "FlightComparator",
    "FlightDataExporter",
    "FlightDataImporter",
    "MonteCarlo",
    "MultivariateRejectionSampler",
]
Suggested change
"FlightDataExporter",
"FlightDataImporter",
"FlightComparator",
"FlightComparator",
"FlightDataExporter",
"FlightDataImporter",

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants