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

Is there a to_subset for subset_state_translator? #2390

Open
pllim opened this issue Apr 25, 2023 · 0 comments
Open

Is there a to_subset for subset_state_translator? #2390

pllim opened this issue Apr 25, 2023 · 0 comments

Comments

@pllim
Copy link
Contributor

pllim commented Apr 25, 2023

I only see to_object implemented here and cannot find any documentation to do it the other way around (i.e., turning object into Subset, not Data).

@subset_state_translator('my_subset_translator')
class FakeSubsetDefinitionTranslator:
"""
A simple subset translator that only knows how to handle
InequalitySubsetState and translates it to a custom serialization.
We include a keyword argument for the translation to make sure it
gets passed through.
"""
def to_object(self, subset):

Related:

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

No branches or pull requests

1 participant