Skip to content

Commit

Permalink
By adding the instrument to the Alazarparameter, the ATSinstrument be…
Browse files Browse the repository at this point in the history
…comes serializable. (#509)

The AlazarParameter were non serializable because an explicit reference was stored.
The way that baseparameter works, now only the name is stored
  • Loading branch information
damazter authored and jenshnielsen committed Mar 3, 2017
1 parent e95d623 commit de88c36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qcodes/instrument_drivers/AlazarTech/ATS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de88c36

Please sign in to comment.