magnetometry/adaptive_magnetometry_analysis.py