qcodes_loop.measure

class qcodes_loop.measure.Measure(*actions)

Create a DataSet from a single (non-looped) set of actions.

Parameters:

*actions (Any) – sequence of actions to perform. Any action that is valid in a Loop can be used here. If an action is a gettable Parameter, its output will be included in the DataSet. Scalars returned by an action will be saved as length-1 arrays, with a dummy setpoint for consistency with other DataSets.

dummy_parameter = <qcodes.parameters.parameter.Parameter: single at 140589770995216>
run(use_threads=False, quiet=False, station=None, **kwargs)

Run the actions in this measurement and return their data as a DataSet

Parameters:
  • quiet (Optional[bool]) – Set True to not print anything except errors. Default False.

  • station (Optional[Station]) – the Station this measurement pertains to. Defaults to Station.default if one is defined. Only used to supply metadata.

  • use_threads (Optional[bool]) – whether to parallelize get operations using threads. Default False.

  • location (Optional[Union[str, bool]]) – the location of the DataSet, a string whose meaning depends on formatter and io, or False to only keep in memory. May be a callable to provide automatic locations. If omitted, will use the default DataSet.location_provider

  • name (Optional[str]) – if location is default or another provider function, name is a string to add to location to make it more readable/meaningful to users

  • formatter (Optional[Formatter]) – knows how to read and write the file format. Default can be set in DataSet.default_formatter

  • io (Optional[io_manager]) – knows how to connect to the storage (disk vs cloud etc)

location, name formatter and io are passed to data_set.new_data along with any other optional keyword arguments.

Returns:

a DataSet object containing the results of the measurement

run_temp(**kwargs)

Wrapper to run this measurement as a temporary data set

snapshot_base(update: bool | None = False, params_to_skip_update: Sequence[str] | None = None)

Override this with the primary information for a subclass.