diff --git a/data/aggsimpleruns.py b/data/aggsimpleruns.py index bc5927fb879bb833e7fdfeaa5cc67ec3af9842a8..732691f9d231656d4a73db6a87401b72fa084280 100644 --- a/data/aggsimpleruns.py +++ b/data/aggsimpleruns.py @@ -1,5 +1,6 @@ import pandas as pd import re +import functools import os import pysake.data.measures as meas @@ -9,6 +10,15 @@ sep = os.environ.get("sep", " ") # default to space ####### All this for legacy experiences +# Function to compare two lists +def compareLists(l1,l2): + if functools.reduce(lambda x, y : x and y, map(lambda p, q: p == q,l1,l2), True): + #print ("The lists l1 and l2 are the same") + return True + else: + #print ("The lists l1 and l2 are not the same") + return False + # Returns the prefix of the files in the results directory of the experience 'label' # prefix could be label+nbAgents+nbIterations or just nbAgents+nbIterations def getResultsFilePrefix(results_directory,label,extension,nbagents,nbiterations):