in nested/workload.py [0:0]
def __init__(self, workload, params, **kwargs):
self._params = params
self.infinite = True
# here we read the queries data file into arrays which we'll then later use randomly.
self.tags = []
self.dates = []
# be predictably random. The seed has been chosen by a fair dice roll. ;)
random.seed(4)
cwd = os.path.dirname(__file__)
with open(os.path.join(cwd, "queries.csv"), "r") as ins:
csvreader = csv.reader(ins)
for row in csvreader:
self.tags.append(row[0])
self.dates.append(row[1])