From 400c1644b072182da8c5ea3348794909198cb11c Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Wed, 10 Apr 2024 12:18:24 +0800 Subject: [PATCH] datasets: style (NFC) --- artiq/dashboard/datasets.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/artiq/dashboard/datasets.py b/artiq/dashboard/datasets.py index b2492658c..749828d61 100644 --- a/artiq/dashboard/datasets.py +++ b/artiq/dashboard/datasets.py @@ -109,9 +109,11 @@ class CreateEditDialog(QtWidgets.QDialog): # degenerates to float type value = float(value * scale) if self.key and self.key != key: - asyncio.ensure_future(exc_to_warning(rename(self.key, key, value, metadata, persist, self.dataset_ctl))) + asyncio.ensure_future(exc_to_warning(rename(self.key, key, value, metadata, persist, + self.dataset_ctl))) else: - asyncio.ensure_future(exc_to_warning(self.dataset_ctl.set(key, value, metadata=metadata, persist=persist))) + asyncio.ensure_future(exc_to_warning(self.dataset_ctl.set(key, value, metadata=metadata, + persist=persist))) self.key = key QtWidgets.QDialog.accept(self) @@ -161,7 +163,7 @@ class CreateEditDialog(QtWidgets.QDialog): class Model(DictSyncTreeSepModel): - def __init__(self, init): + def __init__(self, init): DictSyncTreeSepModel.__init__(self, ".", ["Dataset", "Persistent", "Value"], init)