def get_metrics_by_name(metrics, names):
    """
        Function:
            get_metrics_by_name
        Description:
            Return metrics that match the selected names.
        Input:
            - metrics,list: List of Metric objects
            - names,list: List of metric names
        Output:
            List of metric objects that match names
    """
    return [ m for m in metrics if m.name in names ]