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

Subset classes #904

Merged
merged 2 commits into from
Oct 14, 2022
Merged

Subset classes #904

merged 2 commits into from
Oct 14, 2022

Conversation

dfalbel
Copy link
Member

@dfalbel dfalbel commented Oct 14, 2022

Fix #881

@jonthegeek We now append _subset to the base dataset class, so you can easily write S3 methods for it if necessary.
I don't think there's a safe way to forward the base object methods to the subset as those methods won't know about the selected index and etc. But at least you can now write a custom $ method for your dataset.

@jonthegeek
Copy link
Contributor

Perfect! This is effectively what I'm currently doing, but having it built in will make the code much cleaner (and safer)!

@dfalbel dfalbel merged commit 5b91262 into main Oct 14, 2022
@dfalbel dfalbel deleted the subset-classes branch October 14, 2022 19:47
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.

dataset_subset hides dataset subclass
2 participants