def _rescale_param(param, value, dnu):
    """
    Rescales the resolution value if a dnu parameter is chosen.

    Parameters
    ----------
    param : str
        Parameter name.
    value : float, array
        Value(s) to be rescaled
    dnu : float
        Solar value of dnu given in input.

    Returns
    -------
    value : float, array
        The rescaled value(s)
    """

    # Only run for dnu params, do nothing for other parameters
    if param.startswith("dnu") and param != "dnufit":
        print(
            "Note: {0} converted to solar units from {1} muHz".format(param, value),
            "assuming dnusun = {0:.2f} muHz".format(dnu),
        )
        value /= dnu
    return value