The code for the magnetic field optimization of cusped field thruster designs is presented in ring_magnetic_field.ipynb. Matplotlib, pandas and scipy are required. Please also install magpylib with pip,
pip install magpylib
or with conda
conda install -c conda-forge magpylib
if necessary.