Installation

vMPT is a local-only tool: it runs on your machine, files stay on your disk, computation uses your local Python.

From source (developers)

git clone https://github.com/fengwusun/vMPT.git
cd vMPT
pip install -e .            # editable install, picks up local edits
./run.sh                    # same as `vmpt` after install
pytest tests/               # 183 passed, 5 skipped

STScI’s stenv

If you already use the STScI JWST/HST pipeline environment, the heavy deps (astropy, jwst, pysiaf, …) are already there:

conda activate stenv
pip install jwst-vmpt       # or `pip install -e .` from a checkout
vmpt

What’s installed

After pip install jwst-vmpt:

Thing

Where

Purpose

vmpt/ package

site-packages

Bokeh app + optimizer + IO

vmpt/data/nirspec_msa_v2v3.npz

site-packages

MSA shutter centres in V2/V3

vmpt/data/dispersion_cutoffs.npz

site-packages

per-shutter λ table

vmpt console script

$PATH

starts the Bokeh server

Verifying

vmpt --help                            # should print usage
python -c "import vmpt; print(vmpt.__file__)"

If vmpt is missing from $PATH, your venv’s bin/ directory isn’t being sourced — activate the venv or run with the absolute path printed by pip show -f jwst-vmpt | grep vmpt$.