def get_rates(fluxes, metabolite):
    """ Calculate the rates of the individual reactions

    Parameters
    ----------
    fluxes: dict or pandas.Series
    metabolite: GEMEditor.model.classes.cobra.Metabolite

    Returns
    -------
    rates: dict,
        Partial rates of the individual reactions
    """
    rates = dict()
    for reaction in metabolite.reactions:
        rates[reaction] = float(fluxes[reaction.id] * reaction.metabolites[
            metabolite])
    return rates
