Skip to content

Commit f21e1d6

Browse files
committed
Fix ordering and parameter names for Q16
1 parent fcbea6b commit f21e1d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paramgenerator/generateparamsbi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ def serialize_q15(outdir, countries):
224224
writer.append([country])
225225

226226
def serialize_q16(outdir, persons, tagclasses, countries, path_bounds):
227-
writer = ParamsWriter(outdir, 16, ["person", "tag", "country", "minPathDistance", "maxPathDistance"])
227+
writer = ParamsWriter(outdir, 16, ["person", "country", "tagClass", "minPathDistance", "maxPathDistance"])
228228
random.seed(1988+2)
229-
for tag, count_a in tagclasses:
230-
for country, count_b in countries:
229+
for country, count_b in countries:
230+
for tagClass, count_a in tagclasses:
231231
for minDist, maxDist in path_bounds:
232-
writer.append([str(persons[random.randint(0, len(persons))]), tag, country, str(minDist), str(maxDist)])
232+
writer.append([str(persons[random.randint(0, len(persons))]), country, tagClass, str(minDist), str(maxDist)])
233233

234234
def serialize_q17(outdir, countries):
235235
writer = ParamsWriter(outdir, 17, ["country"])

0 commit comments

Comments
 (0)