Improved error computing for the beta beating in getdiff.py.

Removed some warnings.