def add_model(refwcs, newcoeffs):
    """ Add (new?) distortion model to existing HSTWCS object
    """
    # Update refwcs with distortion model
    for kw in model_attrs:
        if newcoeffs.__dict__[key] is not None:
            refwcs.__dict__[key] = newcoeffs.__dict__[key]
def add_model ( refwcs , newcoeffs ) : for kw in model_attrs : if newcoeffs . __dict__ [ key ] is not None : refwcs . __dict__ [ key ] = newcoeffs . __dict__ [ key ]
Add (new?) distortion model to existing HSTWCS object