From 30fa7f39bcdfafadad510572e1556e5a16da6c57 Mon Sep 17 00:00:00 2001 From: Peter Hanos Date: Wed, 25 Dec 2024 14:34:18 +0200 Subject: [PATCH] Fix `Experiment.last_data_set` to pass `self.conn` to `load_by_id` --- src/qcodes/dataset/experiment_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qcodes/dataset/experiment_container.py b/src/qcodes/dataset/experiment_container.py index 0223dcf6a93..db029764b30 100644 --- a/src/qcodes/dataset/experiment_container.py +++ b/src/qcodes/dataset/experiment_container.py @@ -183,7 +183,7 @@ def last_data_set(self) -> DataSetProtocol: run_id = get_last_run(self.conn, self.exp_id) if run_id is None: raise ValueError("There are no runs in this experiment") - return load_by_id(run_id) + return load_by_id(run_id, conn=self.conn) def finish(self) -> None: """