We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcbea6b commit f21e1d6Copy full SHA for f21e1d6
paramgenerator/generateparamsbi.py
@@ -224,12 +224,12 @@ def serialize_q15(outdir, countries):
224
writer.append([country])
225
226
def serialize_q16(outdir, persons, tagclasses, countries, path_bounds):
227
- writer = ParamsWriter(outdir, 16, ["person", "tag", "country", "minPathDistance", "maxPathDistance"])
+ writer = ParamsWriter(outdir, 16, ["person", "country", "tagClass", "minPathDistance", "maxPathDistance"])
228
random.seed(1988+2)
229
- for tag, count_a in tagclasses:
230
- for country, count_b in countries:
+ for country, count_b in countries:
+ for tagClass, count_a in tagclasses:
231
for minDist, maxDist in path_bounds:
232
- writer.append([str(persons[random.randint(0, len(persons))]), tag, country, str(minDist), str(maxDist)])
+ writer.append([str(persons[random.randint(0, len(persons))]), country, tagClass, str(minDist), str(maxDist)])
233
234
def serialize_q17(outdir, countries):
235
writer = ParamsWriter(outdir, 17, ["country"])
0 commit comments