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:
@ -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)
|
||||
|
Reference in New Issue
Block a user