Skip to content

Commit 0181e41

Browse files
committed
Fix issue with random.sample()
1 parent b190b5c commit 0181e41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencortex/build/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ def get_target_segments(seg_specifications, subset_dict):
16851685
not_selected = True
16861686

16871687
while not_selected:
1688-
random_target_group = random.sample(seg_specifications.keys(), 1)[0]
1688+
random_target_group = random.sample(list(seg_specifications.keys()), 1)[0]
16891689

16901690
cumulative_length_dist = seg_specifications[random_target_group][
16911691
"LengthDist"

0 commit comments

Comments
 (0)