fix: get rid of old API in calibration.py