Show More
@@ -99,9 +99,9 b' def _limitsample(sample, desiredlen, ran' | |||||
99 | """ |
|
99 | """ | |
100 | if len(sample) <= desiredlen: |
|
100 | if len(sample) <= desiredlen: | |
101 | return sample |
|
101 | return sample | |
|
102 | sample = list(sample) | |||
102 | if randomize: |
|
103 | if randomize: | |
103 | return set(random.sample(sample, desiredlen)) |
|
104 | return set(random.sample(sample, desiredlen)) | |
104 | sample = list(sample) |
|
|||
105 | sample.sort() |
|
105 | sample.sort() | |
106 | return set(sample[:desiredlen]) |
|
106 | return set(sample[:desiredlen]) | |
107 |
|
107 |
General Comments 0
You need to be logged in to leave comments.
Login now