Skip to content

Commit 3c818b9

Browse files
committed
fix random shuffle seed
1 parent 8f69aa8 commit 3c818b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

generate_uris.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
RESULT_DIR = "lists"
88

9+
SEED=42
910

1011
import glob
1112
from pathlib import Path
@@ -16,7 +17,8 @@ def is_test_file(filename: str):
1617
return filename.startswith('L') or filename.startswith('M') or filename.startswith('S')
1718

1819
def get_subsets(uris: list, subsets: dict):
19-
uris_left = uris.copy()
20+
rand = random.Random(SEED)
21+
uris_left = rand.sample(uris, len(uris))
2022
random.shuffle(uris_left)
2123
answer = {}
2224
for subsetname in subsets:

0 commit comments

Comments
 (0)