WPIT is not distributed through PyPI or conda-forge. The entire toolset lives in a single Git repository that you clone to your local machine and then point Python at. This page covers every step from prerequisites to a verified installation.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/stourgai/WPIT/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
| Requirement | Minimum version |
|---|---|
| Python | 3.6 |
| pip | any recent version |
| Git | any recent version |
| (optional) Jupyter Notebook | 6.4.1 (bundled in requirements.txt) |
python3 -m venv wpit-env) is strongly recommended so that the pinned package versions do not conflict with other projects on your system.
Step 1 — Clone the Repository
Step 2 — Install Package Dependencies
All required packages are listed with exact version pins inrequirements.txt:
Step 3 — Make WPIT Importable
Because WPIT is not installed as a package, Python must be able to find the repo root on its path. The easiest approach is to launch Python (or Jupyter) from inside the clonedWPIT/ directory, or to add the path explicitly at the top of each script:
setup.py is shipped, but you can create a minimal one, or simply rely on the sys.path approach above).
Step 4 — Verify the Installation
Run the following snippet to confirm that all four modules import successfully and that a basic calculation returns a sensible result:Using Jupyter Notebook
TheModule_descriptions/ and WPIT_tests/ directories contain interactive Jupyter Notebooks that serve as both tutorials and verification tests. To open them:
Module_descriptions/Environment_mod_description.ipynb to start with a guided tour of Environment_mod.
Tested Configuration
The following exact combination was used during development and testing:| Package | Version | Notes |
|---|---|---|
| Python | 3.6.9 | Ubuntu 18.04 LTS |
| matplotlib | 3.2.0 | Plotting |
| numpy | 1.19.5 | Numerical arrays |
| scipy | 1.5.4 | Integration, special functions |
| pandas | 1.1.5 | Ray-file I/O in LandauDamp_mod |
| spacepy | 0.2.2 | Space physics utilities |
| notebook | 6.4.1 | Jupyter Notebook server |
WPIT may work with newer versions of these packages, but only the pinned versions listed above have been formally tested. If you encounter unexpected behavior with newer packages, downgrade to the pinned versions as a first troubleshooting step.