Routines for bfield calculation, profile fitting, EFIT/geqdsk processing, and basic geometry utilities.
Add the MATLAB bfield library to your path:
addpath(genpath('/path/to/util-library/matlab/bfield_library_jdl'))Install the Python utilities in editable mode:
cd /path/to/util-library
python -m pip install -e .This installs the top-level modules:
import EFITutils
import GeoUtilsMPEX-specific Python routines also need the private MPEX-modeling-data repo:
source /path/to/MPEX-modeling-data/setup_paths.shand command-line helpers such as:
gfile_vessel
plot_ogr
order_ogr
refine_ogr_elements
convert_ogr_to_structure_dat
double_gfile_resolutionMost commands only need numpy. Plotting commands, such as plot_ogr, also
need matplotlib. If matplotlib is not already available:
python -m pip install matplotlibor install the optional plotting dependency with the repo:
python -m pip install -e '.[plot]'Developed and maintained by J.D. Lore.