From de88c36c49ece06b1f0dea895c88268799aeaf2a Mon Sep 17 00:00:00 2001 From: damazter Date: Fri, 3 Mar 2017 12:32:56 +0100 Subject: [PATCH] By adding the instrument to the Alazarparameter, the ATSinstrument becomes serializable. (#509) The AlazarParameter were non serializable because an explicit reference was stored. The way that baseparameter works, now only the name is stored --- qcodes/instrument_drivers/AlazarTech/ATS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcodes/instrument_drivers/AlazarTech/ATS.py b/qcodes/instrument_drivers/AlazarTech/ATS.py index c6a6dd90525..98ba18443e9 100644 --- a/qcodes/instrument_drivers/AlazarTech/ATS.py +++ b/qcodes/instrument_drivers/AlazarTech/ATS.py @@ -793,7 +793,8 @@ def __init__(self, name=None, label=None, unit=None, instrument=None, # TODO(damazter) (S) test this validator vals = validators.Enum(*byte_to_value_dict.values()) - super().__init__(name=name, label=label, units=unit, vals=vals) + super().__init__(name=name, label=label, units=unit, vals=vals, + instrument=instrument) self.instrument = instrument self._byte = None self._uptodate_flag = False