Modularize MC: Factor out data saving functionality and use a data saver.
Description
Add documentation on what exactly the responsibilities of the MC are (exists to some extent) and make it explicit what helper functions are used for this. Most of these helper functions should already exist, but this might require some refactoring.
To give a start of this list of helper functions and steps taken in the MC.
- Save a snapshot of all: https://gitlab.com/quantify-os/quantify-core/-/blob/develop/quantify/measurement/control.py#L179
- Initialize dataset https://gitlab.com/quantify-os/quantify-core/-/blob/develop/quantify/measurement/control.py#L166
- create an experiment folder/container create_exp_folder(tuid=self._dataset.attrs["tuid"], name=self._dataset.attrs["name"])
- others
Motivation
The MC is quite versatile, but there can be use-cases where a user wants to make their own measurement loop. It should then still be possible to make use of the quantify dataset and live-plotting. In order to do this, the user needs to have access to utility functions to create a dataset and documentation on what the things are that one should take into account.
Edited by Adriaan