You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to round-trip Perturbation to and from JSON, we need a map of names to Perturbation subclasses. We can use subclass registration to do this automatically (also see this Stack Overflow article). This would eliminate the need to add every new Perturbation subclass to this map.
We should consider doing this for Scenario subclasses too, which have a similar problem.
The text was updated successfully, but these errors were encountered:
I now think that this is not the right approach, and that the current approach (explicitly registering the classes in the serialization module) is more explicit and preferred.
In order to round-trip
Perturbation
to and from JSON, we need a map of names toPerturbation
subclasses. We can use subclass registration to do this automatically (also see this Stack Overflow article). This would eliminate the need to add every newPerturbation
subclass to this map.We should consider doing this for
Scenario
subclasses too, which have a similar problem.The text was updated successfully, but these errors were encountered: