Warning when calling data_set.cache.load_data
jenshnielsen opened this issue · comments
Jens Hedegaard Nielsen commented
Taken from the auto_color_scale notebook (load_data is called by plot_dataset)
# store data in a separate db in order not to spam the actual measurement db
from qcodes.dataset import (
initialise_or_create_database_at,
new_data_set,
new_experiment,
plot_dataset,
)
initialise_or_create_database_at('../example.db')
# create an experiment for this tutorial
new_experiment(name='tutorial_auto_color_scale', sample_name="outliers")
# import methods for creating datasets with outliers:
from qcodes.tests.dataset_generators import dataset_with_outliers_generator
# create a new dataset with outliers
ds = dataset_with_outliers_generator(new_data_set('data_with_outliers'),
low_outlier=-3, high_outlier=3,
background_noise=False)
ds.cache._loaded_from_completed_ds
results in
Trying to mark a run completed that was already completed.
Jens Hedegaard Nielsen commented
fixed by #5567