-
Notifications
You must be signed in to change notification settings - Fork 21
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
Expose random sampling via API #1168
Merged
Merged
Changes from 44 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
f90e226
Define random sample schema
jc-harrison 48c59df
Update Random docstring
jc-harrison 0e01212
Change 'seed' value validation
jc-harrison a69e10e
Add post-load random sample object with method to create flowmachine …
jc-harrison 41c4e04
Add missing import
jc-harrison c644fb7
Use a OneOffSchema for RandomSampleSchema
jc-harrison d696245
Add sampling parameter to daily_location
jc-harrison 83178f9
Small fixes
jc-harrison ccb2e53
Re-implement random_ints to return the specified number of ints
jc-harrison 8ee3404
Fix incorrect calling signature in random.py
jc-harrison a7b3614
Relax seed validity condition in query.py
jc-harrison 972736b
No longer need a size_buffer for random_ids
jc-harrison 7849440
Use random_sample method in random_sample schema
jc-harrison be641b2
Add tests for random sampling schema
jc-harrison 1b1ffa8
Update docstring
jc-harrison 1e792bd
Move seed check from Query class to Random class
jc-harrison 84102d7
Refactor Random classes
jc-harrison c5f0ef2
Fix tests
jc-harrison 90d5afd
Add sampling_method field for API spec visibility
jc-harrison 8ea9a23
Approve integration tests
jc-harrison fa55c60
Allow sampling=None
jc-harrison 12b7945
Add random_sample function to FlowClient
jc-harrison 8c73a19
Fix default values in flowclient.handset
jc-harrison a8d955d
Add docstring for random_sample
jc-harrison 2871525
Approve integration tests
jc-harrison ec3a4a0
Add integration tests for random sampling
jc-harrison c18226c
Remove _db_store_cache_metadata method
jc-harrison 46414d8
Make random samples picklable
jc-harrison 619c582
Add test for pickling Random objects
jc-harrison 9e80c19
Fix tests that were skipped due to bad names
jc-harrison 8c558b6
Merge branch 'master' of github.com:Flowminder/FlowKit into expose-ra…
jc-harrison f2e88a6
Move if/else logic for applying sampling into a helper function
jc-harrison 95dc07f
Add sampling parameter to all non-aggregate query schemas
jc-harrison 892f73b
Update CHANGELOG.md
jc-harrison 2d676c9
Approve integration tests
jc-harrison 1b4c107
Merge branch 'master' of github.com:Flowminder/FlowKit into expose-ra…
jc-harrison 0102a7a
Pass query to random_sample in FlowClient
jc-harrison 8eff4ec
Use dict() instead of copy()
jc-harrison 847a0c1
Merge branch 'master' of github.com:Flowminder/FlowKit into expose-ra…
jc-harrison 1c7b426
Move sampling stuff into parent classes
jc-harrison 9fda795
Merge branch 'master' into expose-random-sampling
jc-harrison d3af3b4
Merge branch 'master' of github.com:Flowminder/FlowKit into expose-ra…
jc-harrison ad275e0
Add SeededRandom class
jc-harrison 7f2e06d
Merge branch 'master' of github.com:Flowminder/FlowKit into expose-ra…
jc-harrison 95ec982
Fix __init__
jc-harrison ae0a353
Rename SeededRandom to SeedableRandom
jc-harrison d7b87b4
Don't duplicate _sample_params
jc-harrison 91db44d
Type annotations
jc-harrison de922fb
Merge branch 'master' of github.com:Flowminder/FlowKit into expose-ra…
jc-harrison 3bc6eda
Merge branch 'master' into expose-random-sampling
jc-harrison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇