def per_iteration(pars, iter, resid, *args, **kws):
    """iteration callback, will abort at iteration 23
    """
    # print( iter, ', '.join(["%s=%.4f" % (p.name, p.value) for p in pars.values()]))
    return iter == 23