0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

WIP pre changing to curve config genration instead of mixed logic

This commit is contained in:
2025-01-23 10:23:58 +01:00
parent f7d54b1068
commit 1686c2a399

View File

@ -1,7 +1,6 @@
from __future__ import annotations
import json
import time
from typing import Literal, Optional
import numpy as np
@ -164,6 +163,8 @@ class Waveform(PlotBase):
"""
raw_list = []
for c in self.plot_item.curves:
if c.config.source == "custom": # Do not serialize custom curves
continue
cfg_dict = c.config.dict()
raw_list.append(cfg_dict)
return json.dumps(raw_list, indent=2)