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

Expand operators before writing JSON #25

Open
lukem12345 opened this issue Feb 29, 2024 · 1 comment
Open

Expand operators before writing JSON #25

lukem12345 opened this issue Feb 29, 2024 · 1 comment

Comments

@lukem12345
Copy link
Member

When a Decapode has composed operators, it will successfully serialize in/ out of JSON. However, when an op1 is a vector of symbols (i.e. a composed operator), it will be parsed in as a Symbol("["d","d"]"), which is not the desired behavior.

This problem can be immediately resolved by calling expand_operators before write_json_acset, but a better solution would overload read_json_acset for the special case of a vector of symbols.

@olynch
Copy link
Member

olynch commented Aug 19, 2024

With intertypes, we can serialize an attribute that is a vector of symbols.

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

2 participants