Skip to content

Commit

Permalink
Merge pull request #6755 from equal1/fix-experiment-connection
Browse files Browse the repository at this point in the history
Fix `Experiment.last_data_set` to pass `self.conn` to `load_by_id`
  • Loading branch information
jenshnielsen authored Jan 2, 2025
2 parents ddc0ef8 + 30fa7f3 commit 52befef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qcodes/dataset/experiment_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit 52befef

Please sign in to comment.