def get_energy(conformer):
    """
    A function to find the potential energy of a conformer

    Variables:
    - conformer (Conformer): the conformer object of interest

    Returns:
    - energy (float): the corresponding energy of that conformer. 
        Will result in an error if there is no ASECalculator object attached to the ase_molecule
    """

    energy = conformer.ase_molecule.get_potential_energy()

    return energy