def get_interaction_energy(ampal_objs, ff=None, assign_ff=True):
if ff is None:<EOL><INDENT>ff = FORCE_FIELDS['<STR_LIT>']<EOL><DEDENT>if assign_ff:<EOL><INDENT>for ampal_obj in ampal_objs:<EOL><INDENT>assign_force_field(ampal_obj, ff)<EOL><DEDENT><DEDENT>interactions = find_inter_ampal(ampal_objs, ff.distance_cutoff)<EOL>buff_score = score_interactions(interactions, ff)<EOL>return buff_score<EOL>
Calculates the interaction energy between AMPAL objects.

    Parameters
    ----------
    ampal_objs: [AMPAL Object]
        A list of any AMPAL objects with `get_atoms` methods.
    ff: BuffForceField, optional
        The force field to be used for scoring. If no force field is
        provided then the most current version of the BUDE force field
        will be used.
    assign_ff: bool, optional
        If true, then force field assignment on the AMPAL object will be
        will be updated.

    Returns
    -------
    BUFF_score: BUFFScore
        A BUFFScore object with information about each of the interactions and
        the atoms involved.