def get_estimated_scale(scale_filename):
    """Read the estimated scale from file."""
    with open(scale_filename) as scale_file:
        lines = scale_file.readlines()
    # We use the latest estimated scale.
    return float(lines[-1].split(' ')[1])