def get_metrics_problem(metrics, problem):
    """
        Function:
            get_metrics_problem
        Description:
            From a list of Metrics, returns only those that match with problem.
        Input:
            - metrics,list: List of Metric objects
            - problem,str: Type of problem
        Output:
            List of metric objects that match problem
    """
    return [ e for e in metrics if (e.problem == problem or e.problem == "both") ]