Skip to content

Fix Enum deserialization error - #160

Merged
marcosfrenkel merged 2 commits into
toolsforexperiments:masterfrom
sdoshi4:master
Oct 2, 2026
Merged

marcosfrenkel merged 2 commits into
toolsforexperiments:masterfrom
sdoshi4:master

Conversation

@sdoshi4

@sdoshi4 sdoshi4 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

When using the QDAC1 qcodes-contrib-driver, each channel has a Mode enum that has namedtuple values. When this was serialized by instrumentserver, it converted the tuple to a list, which was then deserialized as a list that threw an error when trying to reconstruct the Mode enum.

This fix handles specific cases where you are deserializing an enum whose value is a list and ensures you reconstruct the correct value type.

Driver: driver

@marcosfrenkel
marcosfrenkel merged commit a439e0b into toolsforexperiments:master Oct 2, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants