From 1c1fb2250111f8a49ebc00c555bb75a96d26d7e3 Mon Sep 17 00:00:00 2001 From: Alex Dewar Date: Mon, 11 Nov 2024 15:24:08 +0000 Subject: [PATCH] Fix: Missing "version" property when writing measure script files Fixes #699. --- finesse/gui/measure_script/script_edit_dialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/finesse/gui/measure_script/script_edit_dialog.py b/finesse/gui/measure_script/script_edit_dialog.py index a82ca0641..7f30ef9d1 100644 --- a/finesse/gui/measure_script/script_edit_dialog.py +++ b/finesse/gui/measure_script/script_edit_dialog.py @@ -18,7 +18,7 @@ from finesse.config import DEFAULT_SCRIPT_PATH from finesse.gui.error_message import show_error_message from finesse.gui.measure_script.count_widget import CountWidget -from finesse.gui.measure_script.script import Script +from finesse.gui.measure_script.script import CURRENT_SCRIPT_VERSION, Script from finesse.gui.measure_script.sequence_widget import SequenceWidget from finesse.gui.path_widget import SaveFileWidget @@ -97,6 +97,7 @@ def _try_save(self) -> bool: logging.info(f"Saving file to {file_path}") script = { + "version": CURRENT_SCRIPT_VERSION, "repeats": self.count.value(), "sequence": [asdict(seq) for seq in self.sequence_widget.sequence], }