6.5.6. qumada.utils.load_from_sqlite_db

Loading data from Database

qumada.utils.load_from_sqlite_db.flatten_list(l)[source]

Flattens nested lists

Return type:

list

qumada.utils.load_from_sqlite_db.get_parameter_data(dataset=None, parameter_name=None, **kwargs)[source]

Gets you the data for a chosen dependent parameter and the data of the first (!) parameter it depends on #TODO: Support for independent parameters

qumada.utils.load_from_sqlite_db.list_measurements_for_sample(sample_name=None)[source]

Lists all measurements done with a certain sample in the console. If no sample is provided it helps you to find one. Returns list with all datasets belonging to the sample specified. :type sample_name: :param sample_name: In case you do not want to do this via user input. The default is None. :type sample_name: str, optional

Return type:

list

qumada.utils.load_from_sqlite_db.list_sample_names()[source]

Lists all sample names that appear in the database

Return type:

set[str]

qumada.utils.load_from_sqlite_db.load_db(filepath=None)[source]

Loads or creates the database.

Parameters:

filepath (str, optional) – Provide the path to the DB here if you want to skip the file explorer. The default is None.

Return type:

None

Returns:

  • None.

  • #TODO (Checks only whether provided path is a file but not which type.)

qumada.utils.load_from_sqlite_db.pick_measurement(sample_name=None, preview_dialogue=True)[source]

Returns a measurement of your choice, plots it if you want. Interactive, if no sample_name is provided.

qumada.utils.load_from_sqlite_db.pick_measurements(sample_name=None, preview_dialogue=False, measurement_list=None)[source]

Returns a measurement of your choice, plots it if you want. Interactive, if no sample_name is provided.

qumada.utils.load_from_sqlite_db.plot_data(sample_name=None)[source]

Simple plotting of datasets from the QCoDeS DB.

qumada.utils.load_from_sqlite_db.separate_up_down(x_data, y_data)[source]