mirror of https://github.com/m-labs/artiq.git
language: remove deprecated set_dataset(..., save=...)
This commit is contained in:
parent
5a923a0956
commit
b8e7add785
|
@ -39,6 +39,7 @@ Breaking changes:
|
||||||
* Mirny: Added extra delays in ``ADF5356.sync()``. This avoids the need of an extra delay before
|
* Mirny: Added extra delays in ``ADF5356.sync()``. This avoids the need of an extra delay before
|
||||||
calling `ADF5356.init()`.
|
calling `ADF5356.init()`.
|
||||||
* DRTIO: Changed message alignment from 32-bits to 64-bits.
|
* DRTIO: Changed message alignment from 32-bits to 64-bits.
|
||||||
|
* The deprecated ``set_dataset(..., save=...)`` is no longer supported.
|
||||||
|
|
||||||
|
|
||||||
ARTIQ-6
|
ARTIQ-6
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import warnings
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from inspect import isclass
|
from inspect import isclass
|
||||||
|
|
||||||
|
@ -331,7 +330,7 @@ class HasEnvironment:
|
||||||
|
|
||||||
@rpc(flags={"async"})
|
@rpc(flags={"async"})
|
||||||
def set_dataset(self, key, value,
|
def set_dataset(self, key, value,
|
||||||
broadcast=False, persist=False, archive=True, save=None):
|
broadcast=False, persist=False, archive=True):
|
||||||
"""Sets the contents and handling modes of a dataset.
|
"""Sets the contents and handling modes of a dataset.
|
||||||
|
|
||||||
Datasets must be scalars (``bool``, ``int``, ``float`` or NumPy scalar)
|
Datasets must be scalars (``bool``, ``int``, ``float`` or NumPy scalar)
|
||||||
|
@ -343,12 +342,7 @@ class HasEnvironment:
|
||||||
broadcast.
|
broadcast.
|
||||||
:param archive: the data is saved into the local storage of the current
|
:param archive: the data is saved into the local storage of the current
|
||||||
run (archived as a HDF5 file).
|
run (archived as a HDF5 file).
|
||||||
:param save: deprecated.
|
|
||||||
"""
|
"""
|
||||||
if save is not None:
|
|
||||||
warnings.warn("set_dataset save parameter is deprecated, "
|
|
||||||
"use archive instead", FutureWarning)
|
|
||||||
archive = save
|
|
||||||
self.__dataset_mgr.set(key, value, broadcast, persist, archive)
|
self.__dataset_mgr.set(key, value, broadcast, persist, archive)
|
||||||
|
|
||||||
@rpc(flags={"async"})
|
@rpc(flags={"async"})
|
||||||
|
|
Loading…
Reference in New Issue