[BUG] - Loading of serizalized MixerType broken #47
Labels
bug
Something isn't working
fix released
fix to the issue / enhancement has been released
jira
Sync the issue to ZI LabOneQ internal issue tracker.
Describe the bug
Loading a serialized experiment with a defined MixerType fails with:
ValueError: 'IQ' is not a valid MixerType
The serializer tries to instantiate the class with mapped_class(val), which is only valid for const arguments for the definition of the MixerType as introduced in 2.10, MixerType["IQ"] has to be called instead of MixerType("IQ").
To Reproduce
Try to load, for example, the following compiled experiment:
compiledexperiment.zip
Expected behavior
SerializedObject should still be able to load
Code & Screenshots
Versions used:
Context
The text was updated successfully, but these errors were encountered: