pyspedas 2.0.0 migration guide needed #1040
Labels
deprecated
Documentation
Examples, notebooks, installation guides, webinars, etc
MMS
packaging
plotting
pytplot
Issues involving the pytplot package
refactoring
Tutorials
There are some changes coming in pyspedas 2.0 that users will need to know about and adapt to. Most of the necessary changes will work in recent pyspedas 1.X.Y releases, so users can start adopting these practices now. We should add a pyspedas 2.0 migration guide to our readthedocs page, and update our notebooks and tutorials to follow the new best practices.
The themis, mms, erg and most other project directories have been moved into a 'projects' directory. We have an import-time kludge implemented so that calls like 'pyspedas.themis.fgm()' or 'from pyspedas.themis import fgm' still work, but at least PyCharm's static analyzer doesn't see the runtime state of the pyspedas namespace, so it flags some of the constructs as errors now, even though they actually work just fine at runtime.
If we can't figure out how to make this work cleanly, we might want to deprecate pyspedas.themis, pyspedas.mms, etc in favor of 'pyspedas.projects.themis', 'pyspedas.projects.mms', etc
Similar changes will probably be implemented for MMS subdirectories which conflict with function names (e.g. fgm(), feeps(), etc)
Users who are importing from these directories will need to use the new names (or preferably import directly from the pyspedas top level namespace or mms namespace, rather than drilling down to specific file names).
It will no longer be necessary or recommended to "import pytplot". All the tplot routines are already imported into the pyspedas namespace, so "from pyspedas import tplot, get_data, store_data" can replace the equivalent imports from pytplot.
The text was updated successfully, but these errors were encountered: