Gets BUFF score for interaction between two AMPAL objects

def comparator_eval(comparator_params):
    """Gets BUFF score for interaction between two AMPAL objects
    """
    top1, top2, params1, params2, seq1, seq2, movements = comparator_params
    xrot, yrot, zrot, xtrans, ytrans, ztrans = movements
    obj1 = top1(*params1)
    obj2 = top2(*params2)
    obj2.rotate(xrot, [1, 0, 0])
    obj2.rotate(yrot, [0, 1, 0])
    obj2.rotate(zrot, [0, 0, 1])
    obj2.translate([xtrans, ytrans, ztrans])
    model = obj1 + obj2
    model.relabel_all()
    model.pack_new_sequences(seq1 + seq2)
    return model.buff_interaction_energy.total_energy