pleiszenburg / hapsira

hapsira - :rocket: Astrodynamics in Python - a poliastro fork
https://hapsira.readthedocs.io
MIT License
22 stars 1 forks source link

Cannot import OrbitPlotter3D #1

Closed pbhuter closed 11 months ago

pbhuter commented 11 months ago

🐞 Hapsira 0.18-dev migration from Poliastro 0.17 throws error

🖥 ImportError: cannot import name 'OrbitPlotter3D' from 'hapsira.plotting' (C:\Users\paulb\AppData\Local\Programs\Python\Python38\lib\site-packages\hapsira\plotting__init__.py)

kerel-fs commented 11 months ago

hapsira is based on poliastro main as of the date of its archival, October 14 2023, commit 21fd771. Thus it includes already the new plotter architecture. For a full list of changes between the last poliastro release and the current hapsira main branch have a look at the Changelog for the upcoming first release of hapsira:

FEATURE: New plotters architecture with backend support, see poliastro #1545

The OrbitPlotter3D class is gone in favor of a unified orbit plotter. I'd recommend to look into this Pull Request to find documentation on the new plotter API.

disclaimer (because this is the first issue in this repo): I'm not affiliated with this fork, but was curious about the issue here and investigated it.