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

Add reusable subsetting API #55

Merged
merged 4 commits into from
Jul 31, 2024
Merged

Add reusable subsetting API #55

merged 4 commits into from
Jul 31, 2024

Conversation

mpiannucci
Copy link
Collaborator

@mpiannucci mpiannucci commented Jul 30, 2024

#20
#16

This brings a new API to create selector objects to subset on demand. These objects are pickleable so they can be used more efficiently than doing the subset again.

This is super useful, because a data provider or researcher can now predefine their subsets and deliver them from the cloud performantly wihtout having to export entire datasets or compute nodes at request time

See the stofs_3d notebook for an example where an STOFS_3D dataset is read in, subset, the selector is saved via pickle and then loaded back using pickle and used to subset a new dataset.

@mpiannucci mpiannucci marked this pull request as ready for review July 31, 2024 00:52
@mpiannucci mpiannucci merged commit 2de3f6f into main Jul 31, 2024
9 checks passed
@mpiannucci mpiannucci deleted the selectorr branch July 31, 2024 13:01
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