Enh/automatically download images by C8H10O2 · Pull Request #896 · RocketPy-Team/RocketPy

Gui-FernandesBR

Gui-FernandesBR

Gui-FernandesBR

Gui-FernandesBR

Gui-FernandesBR

Gui-FernandesBR

Gui-FernandesBR

Gui-FernandesBR

Gui-FernandesBR

Gui-FernandesBR

…project.toml and requirements-optional.txt
- Introduced a new method `_get_background_map` to fetch and display background maps using contextily.
- Added support for various map types: "satellite", "street", "terrain", and custom contextily providers.
- Updated `ellipses` and comparison methods to integrate background maps, enhancing visualization capabilities.
- Included error handling and warnings for missing dependencies and attributes.
- See issue RocketPy-Team#890
…rlo plots

- Added detailed docstring for the _get_background_map method, outlining parameters, return values, and background map options.
- Clarified usage of background types including "satellite", "street", "terrain", and contextily providers.
- Moved the import of imageio to be conditional upon the presence of an image, improving dependency management.
- This change ensures that imageio is only imported when necessary, optimizing performance and reducing unnecessary imports.

Gui-FernandesBR

@C8H10O2

- Moved import statements for numpy and rocketpy.tools to the top of the test functions to adhere to best practices and improve readability.
- Added pylint disable comments for imports outside of the top-level to maintain code quality standards.
- Added pytest.importorskip for contextily in both integration and unit test files to ensure tests are only run if the required library is installed.
- Replaced direct import of contextily with pytest.importorskip to ensure tests are skipped if the library is not available, enhancing test robustness.
…nal.txt

- Modified contextily dependency in pyproject.toml to conditionally require it for Python versions below 3.14.

@C8H10O2

Gui-FernandesBR