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.
When an
OnionInsightorOnionSmoothInsightis saved to .json, thestate_listattribute (a list ofStateUniorStateMulti) is saved as adict.When the insight is then loaded from .json, the
dictis 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.