def logslice(log, str_list, KEY): tracefilter_log = filter_subsets.apply_trace_attributes(log, str_list, parameters={ constants.PARAMETER_CONSTANT_ATTRIBUTE_KEY: KEY, "positive": True}) return tracefilter_log
def log2sublog(log, str): tracefilter_log = filter_subsets.apply_trace_attributes(log, [str], parameters={ constants.PARAMETER_CONSTANT_ATTRIBUTE_KEY: "AMOUNT_REQ", "positive": True}) return tracefilter_log