def get_enthalpy_differences(mbar):
    """
        Given an `MBAR <https://pymbar.readthedocs.io/en/latest/mbar.html>`_ class object, this function computes the enthalpy differences for the states defined within.

        :param mbar: An MBAR() class object (from the 'pymbar' package)
        :type mbar: `MBAR <https://pymbar.readthedocs.io/en/latest/mbar.html>`_ class object

        :returns:
          - Delta_u ( np.array( n_mbar_states x n_thermo_states ) - Enthalpy differences for the thermodynamic states in 'mbar'
          - dDelta_u ( np.array( n_mbar_states x n_thermo_states ) - Uncertainty in the enthalpy differences for the thermodynamic states in 'mbar'

        """
    results = mbar.computeEntropyAndEnthalpy()
    results = {'Delta_f': results[0], 'dDelta_f': results[1], 'Delta_u':
        results[2], 'dDelta_u': results[3], 'Delta_s': results[4],
        'dDelta_s': results[5]}
    Delta_u = results['Delta_u']
    dDelta_u = results['dDelta_u']
    return Delta_u, dDelta_u
