(groups: List)
return names, number
Get a unique set of the group names.

    Reverts to parameter names (and number of parameters) if groups not
    defined.

    Parameters
    ----------
    groups : List
        

    Returns
    -------
    tuple : names, number of groups
Get a unique set of the group names.
Get a unique set of the group names .
def extract_group_names(groups: List) -> Tuple:
    """Get a unique set of the group names.

    Reverts to parameter names (and number of parameters) if groups not
    defined.

    Parameters
    ----------
    groups : List
        

    Returns
    -------
    tuple : names, number of groups    
    """
    names = list(OrderedDict.fromkeys(groups))
    number = len(names)

    return names, number
def extract_group_names ( groups : List ) -> Tuple : names = list ( OrderedDict . fromkeys ( groups ) ) number = len ( names ) return names , number