Skip to content

Onion state_list not has wrong format when loaded from JSON #134

@matteobecchi

Description

@matteobecchi

When an OnionInsight or OnionSmoothInsight is saved to .json, the state_list attribute (a list of StateUni or StateMulti) is saved as a dict.

When the insight is then loaded from .json, the dict is not converted back into the original form, and thus some methods (such as the ones that do plots) don't work.

We need to modify the .load_from_json() method to solve this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions