fixing calibration code
Merge branch 'semistable' of https://github.com/nckswt/FARSHAPE into semistable