From 25d43fc551cafba8563bb9f92543406dec38a783 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Wed, 25 Jan 2023 22:16:23 +0100 Subject: [PATCH] fill dict with all non-underscore attributes --- grum/mainwin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grum/mainwin.py b/grum/mainwin.py index c38f9a9..48b8217 100644 --- a/grum/mainwin.py +++ b/grum/mainwin.py @@ -134,7 +134,7 @@ class MainWindow(QMainWindow): data = {} for name, item in self.lst.items.items(): desc = item.value - data[name] = dict(xs=desc.xs, ys=desc.ys) + data[name] = {k: v for k, v in desc.__dict__.items() if not k.startswith("_") and v is not None} write_dict(fn, data)