From 57e3d9ee34e2b0c6bbb784cc86d693cdbfc75105 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 25 May 2016 16:36:27 +0200 Subject: [PATCH] browser: react to b3e55b7 --- artiq/browser/experiments.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artiq/browser/experiments.py b/artiq/browser/experiments.py index fa045f5d1..9bc0bca26 100644 --- a/artiq/browser/experiments.py +++ b/artiq/browser/experiments.py @@ -240,7 +240,11 @@ class _ExperimentDock(QtWidgets.QMdiSubWindow): self.expurl, exc_info=True) return for k, v in overrides.items(): - arginfo[k][0]["default"] = v + # Some values (e.g. scans) may have multiple defaults in a list + if isinstance(arginfo[k][0].get("default"), list): + arginfo[k][0]["default"].insert(0, v) + else: + arginfo[k][0]["default"] = v self.arguments = self._area.initialize_submission_arguments(arginfo) self.argeditor.deleteLater()