Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampling in Python #403

Merged
merged 8 commits into from
Apr 11, 2023
Merged

Sampling in Python #403

merged 8 commits into from
Apr 11, 2023

Conversation

tempookian
Copy link
Collaborator

Implemented sampling in Python
Thanks @goingfine for testing

tempookian and others added 8 commits April 11, 2023 12:31
IPs are sampled randomly if the respective argument is provided. Argument can be either a 0 < float < 1 indicating ratio of the ips to take from each subnet (math.ceil(sample_size * len(subnet_ip_list)) or an integer indicating (maximum) number of ips to take from each subnet.

Co-Authored-By: MITI <127666010+miytiy@users.noreply.github.com>
@tempookian tempookian merged commit 4e4a7c1 into dev Apr 11, 2023
@tempookian tempookian deleted the py-sample branch April 11, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant