Added invert.select to calib.py